/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom cursor trail */
.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(193, 127, 89, 0.9) 0%, rgba(193, 127, 89, 0.6) 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}

.cursor-trail::before,
.cursor-trail::after {
    content: '';
    position: fixed;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(193, 127, 89, 0.7) 0%, rgba(193, 127, 89, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 9998;
}

.cursor-trail::before {
    left: var(--trail2-x, 0px);
    top: var(--trail2-y, 0px);
}

.cursor-trail::after {
    left: var(--trail3-x, 0px);
    top: var(--trail3-y, 0px);
}

/* Keep cursor visible but add custom trail */
a, button, .project-card, .writing-card {
    cursor: auto;
}

/* Show default cursor on mobile */
@media (max-width: 768px) {
    .cursor-trail {
        display: none;
    }
    a, button, .project-card, .writing-card {
        cursor: auto;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'WDXL Lubricant JPN', 'JetBrains Mono', 'Inter', sans-serif;
    line-height: 1.6;
    color: #4a4a4a;
    background: #f8f6f2;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="paper" width="100" height="100" patternUnits="userSpaceOnUse"><rect width="100" height="100" fill="%23f8f6f2"/><circle cx="20" cy="20" r="1" fill="%23e8e4d8" opacity="0.3"/><circle cx="80" cy="40" r="0.5" fill="%23e8e4d8" opacity="0.2"/><circle cx="60" cy="80" r="0.8" fill="%23e8e4d8" opacity="0.25"/><circle cx="40" cy="60" r="0.6" fill="%23e8e4d8" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

p, span, div, a, li, button, input, textarea {
    font-family: 'WDXL Lubricant JPN', 'JetBrains Mono', 'Inter', sans-serif;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 246, 242, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid #d4c4a8;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-family: 'Bebas Neue', 'Arial Black', 'Helvetica Bold', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #8b7355;
    text-decoration: none;
    background: linear-gradient(135deg, #8b7355, #a67c52);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #6b5b47;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #c17f59;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #c17f59, #a67c52);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f6f2 0%, #e8e4d8 100%);
    position: relative;
    overflow: hidden;
}

#hero-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

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

.hero-title {
    font-family: 'Bebas Neue', 'Arial Black', 'Helvetica Bold', sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #4a4a4a;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: 2px;
}

.hero-title .highlight {
    font-family: 'Bebas Neue', 'Arial Black', 'Helvetica Bold', sans-serif;
    background: linear-gradient(135deg, #c17f59, #a67c52);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #c17f59; /* Fallback color */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b5b47;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: #7a6b5a;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #c17f59, #a67c52);
    color: white;
    box-shadow: 0 4px 15px rgba(193, 127, 89, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 127, 89, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #6b5b47;
    border: 2px solid rgba(107, 91, 71, 0.3);
}

.btn-secondary:hover {
    background: rgba(107, 91, 71, 0.1);
    border-color: rgba(107, 91, 71, 0.5);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

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

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Bebas Neue', 'Arial Black', 'Helvetica Bold', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: #4a4a4a;
    position: relative;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #c17f59, #a67c52);
    border-radius: 0;
    transition: transform 0.8s ease;
    transform-origin: center;
}

.section-title.animate::after {
    transform: translateX(-50%) scaleX(1);
}

/* About Section */
.about {
    background: rgba(212, 196, 168, 0.3);
    backdrop-filter: blur(10px);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    grid-template-columns: 1fr;
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-text p {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.skills h3 {
    color: #4a4a4a;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(193, 127, 89, 0.2);
    color: #6b5b47;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(193, 127, 89, 0.3);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.skill-tag:hover {
    transform: translateY(-2px);
    background: rgba(193, 127, 89, 0.3);
    box-shadow: 0 4px 8px rgba(193, 127, 89, 0.2);
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

/* Projects Section */
.projects {
    background: rgba(212, 196, 168, 0.1);
}

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

.project-card {
    background: rgba(248, 246, 242, 0.9);
    border-radius: 18px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 4px 0px rgba(107, 91, 71, 0.2);
    position: relative;
    overflow: visible;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 8px 12px 20px rgba(107, 91, 71, 0.15);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(193, 127, 89, 0.14) 0%, transparent 45%);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c17f59, #a67c52);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 2px solid #d4c4a8;
    box-shadow: 2px 2px 0px rgba(107, 91, 71, 0.3);
}

.project-image i {
    font-size: 1.5rem;
    color: white;
}

.project-content h3 {
    color: #4a4a4a;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: #6b5b47;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(193, 127, 89, 0.2);
    color: #6b5b47;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #c17f59;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #a67c52;
}

/* Writing Section */
.writing {
    background: rgba(212, 196, 168, 0.3);
    backdrop-filter: blur(10px);
}

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

.writing-card {
    background: rgba(248, 246, 242, 0.9);
    border-radius: 0;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: none !important;
    border-image: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 4px 0px rgba(107, 91, 71, 0.2);
    position: relative;
    overflow: visible;
    opacity: 0;
    transform: translateY(30px);
}

.writing-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.writing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 8px 12px 20px rgba(107, 91, 71, 0.15);
}

.writing-card::after {
    display: none !important;
}

.writing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(193, 127, 89, 0.11) 0%, transparent 45%);
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.writing-card:hover::before {
    opacity: 1;
}

.writing-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.writing-category {
    background: linear-gradient(135deg, #c17f59, #a67c52);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #d4c4a8;
}

.writing-date {
    color: #7a6b5a;
    font-size: 0.9rem;
}

.writing-card h3 {
    color: #4a4a4a;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.writing-card p {
    color: #6b5b47;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.writing-link {
    color: #c17f59;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.writing-link:hover {
    color: #a67c52;
    gap: 0.75rem;
}

/* Contact Section */
.contact {
    background: rgba(212, 196, 168, 0.1);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-info h3 {
    color: #4a4a4a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #6b5b47;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    color: #6b5b47;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 10px;
}

.contact-link:hover {
    color: #c17f59;
    background: rgba(212, 196, 168, 0.5);
}

.contact-form {
    background: rgba(248, 246, 242, 0.9);
    padding: 2rem;
    border-radius: 0;
    backdrop-filter: blur(10px);
    border: 2px solid #d4c4a8;
    box-shadow: 4px 4px 0px rgba(107, 91, 71, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #d4c4a8;
    border-radius: 0;
    background: rgba(248, 246, 242, 0.8);
    color: #4a4a4a;
    font-family: inherit;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #7a6b5a;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c17f59;
    background: rgba(248, 246, 242, 0.9);
}

/* Footer */
.footer {
    background: rgba(212, 196, 168, 0.5);
    text-align: center;
    padding: 2rem 0;
    color: #6b5b47;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

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

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-buttons {
        justify-content: center;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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


}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

/* Removed concrete blocks - clean space for visual balance */ 