:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #00d4ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    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 var(--accent-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    background-color: rgba(0, 212, 255, 0.1);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

p {
    font-family: var(--font-jp);
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
}

#hero h1 {
    font-size: 5rem;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
}

.scroll-indicator span {
    display: block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    margin: 10px auto;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Sections */
section {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s;
}

section:hover .section-title::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

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

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

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

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

.work-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.work-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.work-content p {
    margin-bottom: 25px;
    color: #ccc;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--accent-color);
    color: #000;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* Contact */
#contact {
    text-align: center;
}

.contact-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: #666;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }

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

    header {
        padding: 20px;
    }

    nav ul {
        display: none;
    }

    /* Simple hide for now, can add hamburger if needed */
}

/* New Section Styles */
.section-subtitle {
    text-align: center;
    color: #ccc;
    margin-bottom: 40px;
    margin-top: -40px;
}

.work-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 20px;
}

/* Contact Section Updates */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

#copy-email-btn {
    position: relative;
    cursor: pointer;
    background: transparent;
    font-family: var(--font-main);
    font-size: 1.2rem;
}

#copy-email-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, top 0.3s;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--accent-color) transparent transparent transparent;
}

#copy-email-btn.copied .tooltip {
    opacity: 1;
    top: -50px;
}

.x-link {
    /* Specific styles for X link if needed */
    display: inline-flex;
    align-items: center;
}

/* Detail Pages */
.detail-hero {
    padding-top: 150px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-image {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.detail-image img {
    width: 100%;
    display: block;
}

.detail-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.detail-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-align: left;
    line-height: 2;
}