/* Gen Z / Neo-Brutalist Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;700&display=swap');

:root {
    /* Gen Z Color Palette */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;

    --text-primary: #ffffff;
    --text-secondary: #d4d4d4;

    /* Cyber Lime Accent */
    --accent-color: #ccff00;
    --accent-text: #000000;
    /* Text on top of accent */

    /* Secondary Accent (Electric Blue) */
    --accent-secondary: #3300ff;

    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Space Grotesk', -apple-system, sans-serif;
    /* Mono-ish vibe */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Brutalist Borders */
    --border-width: 2px;
    --border-radius: 0px;
    /* Sharp edges */
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

a,
button {
    cursor: none;
    /* Hide default cursor */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* 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-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover state for cursor (can be toggled via JS on hoverable elements) */
body:has(a:hover) .cursor-outline,
body:has(button:hover) .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(204, 255, 0, 0.1);
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
}

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

.text-secondary {
    color: var(--text-secondary);
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid #222;
}

/* Brutalist Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    border: var(--border-width) solid var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--accent-text);
    box-shadow: 4px 4px 0px var(--text-primary);
    /* Hard shadow */
    transform: translate(-2px, -2px);
}

.btn-primary {
    /* Inherits base btn styles */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-bottom: var(--border-width) solid var(--accent-color);
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    /* Offset for fixed nav */
}

.hero h1 {
    mix-blend-mode: difference;
}

/* Marquee Animation */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--accent-color);
    padding: var(--spacing-sm) 0;
    transform: rotate(-2deg) scale(1.05);
    /* Jaunty angle */
    margin: var(--spacing-lg) 0;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.marquee-content {
    display: flex;
    gap: var(--spacing-lg);
    animation: marquee 15s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-text);
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* PROJECT PAGE STYLES - Brutalist */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-md);
}

.project-card {
    background-color: var(--bg-card);
    border: var(--border-width) solid #333;
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    border-color: var(--accent-color);
    box-shadow: 8px 8px 0px var(--accent-color);
    transform: translate(-4px, -4px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.folder-icon {
    color: var(--accent-color);
    font-size: 2rem;
}

.project-links a {
    color: var(--text-primary);
    font-size: 1.5rem;
}

.project-links a:hover {
    color: var(--accent-color);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tags li {
    background-color: #222;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    border: 1px solid #444;
    text-transform: uppercase;
}

/* ABOUT PAGE STYLES */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Text wider */
    gap: var(--spacing-lg);
    align-items: center;
}

.skills-list li::before {
    content: "⚡";
    /* Changed from triangle */
    margin-right: 10px;
    color: var(--accent-color);
    position: static;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    z-index: 10;
    border: 2px solid var(--accent-color);
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.3s;
}

.about-image:hover {
    filter: none;
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0px var(--accent-secondary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marquee-container {
        transform: rotate(-2deg);
        /* Less scale on mobile */
    }

    .navbar {
        padding: 1rem;
    }

    .about-content {
        display: flex;
        flex-direction: column-reverse;
        /* Image on top? or bottom. Standard stack used here */
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
        /* Hide custom cursor on touch devices */
    }
}