:root {
    --bg-color: #050505;
    --text-color: #f5f5f5;
    --text-muted: #888888;
    --border-color: #333333;
    --accent-color: #ffffff;
    
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
    
    --transition: all 0.4s 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 {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* 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-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;
}

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

a {
    color: var(--text-color);
    text-decoration: none;
}

.block {
    display: block;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 1000;
    mix-blend-mode: difference;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

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

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    position: relative;
}

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

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

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001; /* Ensure above nav-links when open */
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    transition: var(--transition);
    cursor: none;
}

.btn2 {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: 50px;
    transition: var(--transition);
    cursor: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 8rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.hero-image-container {
    width: 40%;
    max-width: 500px;
    position: relative;
    z-index: -1;
}

.image-wrapper {
    position: relative;
    padding-bottom: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 70%);
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.5s ease;
}

.hero-img:hover {
    filter: grayscale(0%) contrast(1);
}

/* Sections Global */
.section-header {
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.section-title {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-stats {
    display: flex;
    gap: 4rem;
}

.stat-number {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    /* text-transform: uppercase; */
    letter-spacing: 0.1em;
}

/* Works */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.work-card {
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 0;
}

.work-card:hover {
    border-color: var(--accent-color);
}

.work-card:hover::before {
    transform: translateY(0);
}

.work-card-inner {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.work-card:hover .work-card-inner h3,
.work-card:hover .work-card-inner p,
.work-card:hover .work-card-inner .view-more {
    color: var(--bg-color);
}

.work-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.work-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.view-more {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Contact */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.appear {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-image-container {
        width: 80%;
        margin-top: 4rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 1.5rem 2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        height: 100vh;
        justify-content: center;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 2rem 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Disable custom cursor on mobile */
    body {
        cursor: auto;
    }

    .btn, .btn2 {
        cursor: pointer;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}
