:root {
    --bg: #0a0a0a;
    --text: #f0f0f0;
    --text-muted: #888;
    --accent: #3b82f6; /* Royal Blue */
    --border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Syne', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--text);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.active {
    width: 0;
    height: 0;
}

.cursor-follower.active {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;
    mix-blend-mode: difference;
}

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

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

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

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

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.3s;
}

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

.menu-btn {
    display: none;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 60px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 6vw;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 4rem;
}

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

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.line {
    width: 60px;
    height: 1px;
    background: var(--text-muted);
}

/* Work Section */
.work {
    padding: 10rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
}

.count {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-muted);
}

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

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

.project-item:hover {
    padding: 3rem 2rem;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.project-item:hover .project-info h3 {
    color: var(--accent);
}

.project-info p {
    color: var(--text-muted);
}

.project-year {
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.project-img-reveal {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 400px;
    height: 250px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10;
    border-radius: 8px;
}

.project-item:hover .project-img-reveal {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-2deg);
}

/* About Section */
.about {
    padding: 5rem 0 10rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text .lead {
    font-size: 2rem;
    font-family: var(--font-display);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
}

.skills-list span {
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.skills-list span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.about-img img {
    width: 100%;
    border-radius: 8px;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.about-img:hover img {
    filter: grayscale(0%);
}

/* Contact Section */
.contact {
    padding: 10rem 0;
    text-align: center;
}

.contact-label {
    color: var(--accent);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

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

.email-link {
    font-size: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
    transition: color 0.3s, border-color 0.3s;
}

.email-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.social-links {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--text);
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
}

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-title { font-size: 12vw; }
    .nav-links { display: none; }
    .menu-btn { display: block; width: 30px; height: 20px; position: relative; }
    .menu-btn span { position: absolute; width: 100%; height: 2px; background: white; }
    .menu-btn span:first-child { top: 0; }
    .menu-btn span:last-child { bottom: 0; }
    .about-grid { grid-template-columns: 1fr; }
    .project-img-reveal { display: none; } /* Hide hover images on mobile */
    .project-item:hover { padding: 3rem 0; }
    .cursor, .cursor-follower { display: none; } /* Hide custom cursor on touch */
    * { cursor: auto; }
}
