/* Reset & Base Styles */
:root {
    --primary-color: #ffffff;
    --secondary-color: #bbbbbb;
    --background-color: #121212;
    --card-background: #1e1e1e;
    --accent-color: #00aaff;
    --hover-color: #0088cc;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

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

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

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Header */
header {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #2a2a2a;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 2rem;
}

header nav ul li a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px;
}

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

header nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(18, 18, 18, 0.5), rgba(18, 18, 18, 0.8)), url('https://source.unsplash.com/random/1600x900/?technology,abstract') no-repeat center center/cover;
}

#hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    margin-bottom: 0.5rem;
    animation: fadeInDown 1s ease-out;
}

#hero p {
    font-size: 1.5rem;
    color: var(--secondary-color);
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards;
}

/* Works Section */
#works,
#recent-activity,
#making {
    padding: 6rem 0;
}

#works h2,
#recent-activity h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 4rem;
}

#making h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.card {
    background: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.card-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    margin-right: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
}

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

#recent-activity .twitter-tweet {
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--card-background);
    text-align: center;
    padding: 4rem 0;
}

footer p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    font-size: 2rem;
    margin: 0 1rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

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

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem !important;
    color: #666;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    #hero h1 { font-size: 3.5rem; }
    #hero p { font-size: 1.2rem; }
    header .container {
        flex-direction: column;
    }
    header nav {
        margin-top: 1rem;
    }
}
