:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #ffffff;
    --secondary-text: #888888;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --cursor-size: 20px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 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 rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;
    mix-blend-mode: difference;
}

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

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 5px;
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-content {
    margin-top: -5vh;
}

.name {
    font-family: var(--font-display);
    font-size: 15vw;
    /* Made slightly larger */
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    mix-blend-mode: difference;
}

/* Typing Animation Styles */
.titles-wrapper {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 3rem;
}

.dynamic-text {
    color: var(--accent-color);
    font-weight: 500;
}

.cursor-blink {
    display: inline-block;
    width: 2px;
    height: 2rem;
    background-color: var(--accent-color);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.tagline {
    font-size: 1.1rem;
    color: var(--secondary-text);
    max-width: 400px;
    margin-top: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--secondary-text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator .line {
    width: 60px;
    height: 1px;
    background-color: var(--secondary-text);
}

/* Projects Section */
.projects {
    padding: 10rem 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 4rem;
    margin-bottom: 6rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.section-title .count {
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--secondary-text);
    margin-top: 10px;
}

.projects-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s;
    position: relative;
}

.project-item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.project-info {
    flex: 1;
}

.project-number {
    font-family: var(--font-display);
    color: var(--secondary-text);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
}

.project-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.project-category {
    color: var(--secondary-text);
    font-size: 1rem;
}

.project-details {
    flex: 1;
    max-width: 400px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.tags {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.tags span {
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
}

.project-link-icon {
    font-size: 2rem;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

/* Hover Effects */
.project-item:hover .project-title {
    transform: translateX(20px);
    color: var(--accent-color);
}

.project-item:hover .project-details {
    opacity: 1;
}

.project-item:hover .project-link-icon {
    transform: rotate(0deg) scale(1.2);
}

/* Project Links Reset */
.project-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Footer */
.footer {
    padding: 15rem 2rem 40vh;
    /* Using vh to ensure it's a significant portion of the screen */
    margin-bottom: 0;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 8vw;
    line-height: 1;
    margin-bottom: 6rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 6rem;
    flex-wrap: wrap;
}

.footer-btn {
    font-family: var(--font-main);
    /* Switched to Inter for cleaner look */
    font-size: 1.2rem;
    color: var(--bg-color);
    background-color: var(--accent-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    border: none;
    display: inline-block;
}

.footer-btn:hover {
    transform: translateY(-5px);
    background-color: #cccccc;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.copyright {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.dev-joke {
    color: var(--secondary-text);
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
}

/* Responsive */
@media (max-width: 768px) {
    .name {
        font-size: 15vw;
        /* Reduced from 18vw/15vw desktop */
    }

    .titles-wrapper {
        font-size: 1.2rem;
        height: 2rem;
        flex-wrap: wrap;
    }

    .cursor-blink {
        height: 1.2rem;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 3rem 0;
    }

    .project-title {
        font-size: 2.5rem;
    }

    .project-details {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .project-link-icon {
        position: absolute;
        top: 3rem;
        right: 0;
        font-size: 1.5rem;
    }

    .footer {
        padding: 8rem 1.5rem 10rem;
        /* Significantly reduced padding for mobile */
    }

    .footer-title {
        font-size: 15vw;
        margin-bottom: 3rem;
    }

    .footer-links {
        gap: 1rem;
        margin-bottom: 4rem;
    }

    .footer-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .page-spacer {
        height: 20vh;
        /* Reduced spacer for mobile */
    }

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

    * {
        cursor: auto;
        /* Restore default cursor */
    }
}

/* Page Spacer */
.page-spacer {
    height: 10vh;
    width: 100%;
    pointer-events: none;
}