/* Base Styles */
:root {
    --dark-navy: #0a192f;
    --navy: #112240;
    --light-navy: #233554;
    --lightest-navy: #303C55;
    --slate: #8892b0;
    --light-slate: #ccd6f6;
    --lightest-slate: #e6f1ff;
    --green: #64ffda;
    --green-tint: rgba(100, 255, 218, 0.1);
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background-color: var(--dark-navy);
    color: var(--slate);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--green);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.section-title {
    font-size: 2.5rem;
    color: var(--light-slate);
    margin-bottom: 10px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--green), #00bfa5);
    margin-bottom: 40px;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, var(--light-navy) 1px, transparent 1px),
        linear-gradient(to bottom, var(--light-navy) 1px, transparent 1px);
    pointer-events: none;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .background-animation {
        background-size: 30px 30px; /* Smaller grid for mobile */
    }
}

@media screen and (max-width: 375px) {
    .background-animation {
        background-size: 20px 20px; /* Even smaller grid for small devices */
    }
}

/* Cursor Trail */
.cursor-trail {
    mix-blend-mode: exclusion;
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(10, 25, 47, 0.98);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--green);
    transition: var(--transition);
    cursor: pointer;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo:hover i {
    animation: logoSpin 0.6s ease-in-out;
}

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--green), #00bfa5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.logo span {
    background: linear-gradient(135deg, var(--green), #00bfa5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--light-slate);
    position: relative;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--green);
    background-color: rgba(100, 255, 218, 0.05);
    padding: 0.5rem 0.8rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(to right, var(--green), #00bfa5);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--green);
}

.nav-link.active::after {
    width: 100%;
}

/* Smooth scrolling for navigation links */
.nav-link {
    scroll-behavior: smooth;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-cta {
    background: linear-gradient(135deg, var(--green), #00bfa5);
    color: var(--navy);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
    background: linear-gradient(135deg, #00bfa5, var(--green));
}

.nav-cta::before {
    content: '💬';
    font-size: 1rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.hamburger:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background: linear-gradient(to right, var(--green), #00bfa5);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    order: 1;
}

.hero-image {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-picture {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--green);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.2);
    transition: var(--transition);
}

.profile-picture:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(100, 255, 218, 0.3);
}

.greeting {
    color: var(--green);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.name {
    font-size: 4rem;
    color: var(--light-slate);
    margin-bottom: 1rem;
}

.japanese-name {
    font-size: 3rem;
    color: var(--slate);
    margin-bottom: 2rem;
}

.title {
    font-size: 1.5rem;
    color: var(--slate);
    margin-bottom: 3rem;
    max-width: 800px;
}

.cta-button {
    display: inline-block;
    border: 2px solid var(--green);
    color: var(--green);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--green-tint);
    transform: translateY(-5px);
}

/* About Section */
.about {
    padding: 120px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.about-text {
    color: var(--light-slate);
}

.about-text p {
    margin-bottom: 1rem;
}

.tech-stack h3 {
    font-size: 1.5rem;
    color: var(--light-slate);
    margin-bottom: 1.5rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tech-item {
    background-color: var(--navy);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-align: center;
}

.tech-item:hover {
    transform: translateY(-5px);
    background-color: var(--light-navy);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.1);
}

.tech-item i {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 10px;
}

.tech-item span {
    font-size: 0.9rem;
    color: var(--light-slate);
    font-weight: 500;
}

/* Experience Section */
.experience {
    padding: 120px 0;
    background-color: rgba(17, 34, 64, 0.3);
}

.experience-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.experience-column {
    position: relative;
}

.experience-subtitle {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.experience-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--green), #00bfa5);
}

.timeline {
    position: relative;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--green);
    top: 0;
    bottom: 0;
    left: 50px;
}

.timeline-item {
    padding: 10px 40px 10px 70px;
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--green);
    border-radius: 50%;
    left: 42px;
    top: 30px;
    z-index: 1;
}

.timeline-content {
    padding: 2rem;
    background-color: var(--navy);
    border-radius: 8px;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(10px);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--light-slate);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--green);
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 1rem;
}

.timeline-skills {
    font-size: 0.85rem;
    color: var(--green);
    margin-top: 0.5rem;
    font-style: italic;
}

.timeline-achievement {
    font-size: 0.9rem;
    color: var(--green);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Certifications Section */
.certifications {
    padding: 120px 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cert-card {
    background-color: var(--navy);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.cert-card h3 {
    font-size: 1.2rem;
    color: var(--light-slate);
    margin-bottom: 0.5rem;
}

.cert-card h4 {
    font-size: 1rem;
    color: var(--green);
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.cert-card p {
    font-size: 0.9rem;
}

.credential-id {
    font-size: 0.8rem !important;
    color: var(--green);
    font-family: monospace;
    word-break: break-all;
    margin-top: 0.5rem;
}

.cert-skills {
    font-size: 0.85rem !important;
    color: var(--green);
    font-style: italic;
    margin-top: 0.5rem;
}

.cert-type {
    font-size: 0.85rem !important;
    color: var(--slate);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Projects Section */
.projects {
    padding: 120px 0;
    background-color: rgba(17, 34, 64, 0.3);
}

.project-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-card {
    position: relative;
    background-color: var(--navy);
    padding: 2rem;
    border-radius: 8px;
    border-left: 6px solid var(--green);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateX(10px);
}

.project-card h3 {
    font-size: 1.5rem;
    color: var(--light-slate);
    margin-bottom: 1rem;
}

.project-card p {
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--green);
    border-radius: 50px;
}

.project-link:hover {
    background-color: var(--green-tint);
}

/* Volunteering Section */
.volunteering {
    padding: 120px 0;
}

.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.volunteer-card {
    background-color: var(--navy);
    padding: 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    height: 100%;
}

.volunteer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.volunteer-card h3 {
    font-size: 1.2rem;
    color: var(--light-slate);
    margin-bottom: 0.5rem;
}

.volunteer-card h4 {
    font-size: 1rem;
    color: var(--green);
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.volunteer-card p {
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background-color: rgba(17, 34, 64, 0.3);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h3 {
    font-size: 2.5rem;
    color: var(--light-slate);
    margin-bottom: 1.5rem;
}

.contact-header p {
    font-size: 1.1rem;
    color: var(--slate);
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Contact Information */
.contact-info {
    background-color: var(--navy);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--light-navy);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.contact-info h4 {
    font-size: 1.8rem;
    color: var(--light-slate);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--slate);
    margin-bottom: 2rem;
}

.contact-methods {
    margin-bottom: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--lightest-navy);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateX(5px);
    background-color: var(--light-navy);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--green), #00bfa5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 1.2rem;
}

.contact-details h5 {
    color: var(--light-slate);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-details p {
    color: var(--slate);
    font-size: 0.9rem;
}

.social-contact h5 {
    color: var(--light-slate);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    color: var(--light-slate);
    border: 1px solid var(--light-navy);
    transition: var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    transform: translateX(5px);
    border-color: var(--green);
}

.social-btn.github:hover {
    background-color: rgba(36, 41, 46, 0.3);
    color: #f6f8fa;
}

.social-btn.linkedin:hover {
    background-color: rgba(0, 119, 181, 0.3);
    color: #0077b5;
}

.social-btn.youtube:hover {
    background-color: rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

.social-btn i {
    font-size: 1.2rem;
}

/* Contact Form */
.contact-form-container {
    background-color: var(--navy);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--light-navy);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.contact-form-container h4 {
    font-size: 1.8rem;
    color: var(--light-slate);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--light-slate);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input, 
.form-group textarea,
.form-group select {
    background-color: var(--lightest-navy);
    border: 1px solid var(--light-navy);
    color: var(--lightest-slate);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
    background-color: var(--light-navy);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group textarea::placeholder {
    color: var(--slate);
}

.submit-btn {
    align-self: flex-start;
    width: auto;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--green), #00bfa5);
    color: var(--navy);
    border: none;
    font-weight: 600;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
    background: linear-gradient(135deg, #00bfa5, var(--green));
}

.submit-btn .btn-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    word-wrap: break-word;
}

.form-status.success {
    background-color: rgba(0, 200, 83, 0.1);
    color: #00c853;
    border: 1px solid #00c853;
}

.form-status.error {
    background-color: rgba(255, 82, 82, 0.1);
    color: #ff5252;
    border: 1px solid #ff5252;
}

.form-status.warning {
    background-color: rgba(255, 171, 0, 0.1);
    color: #ffab00;
    border: 1px solid #ffab00;
}

/* Footer */
footer {
    padding: 2rem 0;
    background-color: var(--dark-navy);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--green);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--green-tint);
    transform: translateY(-3px);
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .volunteer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .experience-subtitle {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .experience-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-header h3 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 1rem;
        height: 70px;
    }
    
    .logo span {
        display: none;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .nav-actions {
        gap: 1rem;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
        z-index: 101;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: rgba(17, 34, 64, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        transition: 0.3s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        padding-top: 80px;
        z-index: 100;
        border-left: 1px solid rgba(100, 255, 218, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(100, 255, 218, 0.1);
        transition: var(--transition);
    }
    
    .nav-link:hover {
        background-color: rgba(100, 255, 218, 0.1);
        color: var(--green);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .name {
        font-size: 3rem;
    }
    
    .japanese-name {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .profile-picture {
        width: 250px;
        height: 250px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tech-item {
        padding: 1.2rem;
    }
    
    .tech-item i {
        font-size: 1.5rem;
    }
    
    .tech-item span {
        font-size: 0.8rem;
    }
    
    .timeline-item {
        padding: 10px 20px 10px 60px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    
    section {
        padding: 80px 0 !important;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input, 
    .form-group textarea {
        padding: 0.6rem 0.8rem;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 2rem;
    }
    
    .contact-header h3 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .nav-container {
        padding: 0 0.8rem;
        height: 65px;
    }
    
    .logo i {
        font-size: 1.8rem;
    }
    
    .nav-links {
        width: 85%;
        padding-top: 70px;
    }
    
    .nav-links ul {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .volunteer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .name {
        font-size: 2.2rem;
    }
    
    .japanese-name {
        font-size: 1.6rem;
    }
    
    .title {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .experience-subtitle {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .experience-columns {
        gap: 30px;
    }
    
    .timeline::after {
        left: 35px;
    }
    
    .timeline-item {
        padding: 10px 10px 10px 50px;
    }
    
    .timeline-item::after {
        left: 27px;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content h4 {
        font-size: 0.9rem;
    }
    
    .timeline-date,
    .timeline-description {
        font-size: 0.85rem;
    }
    
    .cert-card,
    .volunteer-card {
        padding: 1.2rem;
    }
    
    .cert-card h3,
    .volunteer-card h3 {
        font-size: 1rem;
    }
    
    .cert-card h4,
    .volunteer-card h4 {
        font-size: 0.9rem;
    }
    
    .contact-content h3 {
        font-size: 1.5rem;
    }
    
    .contact-header h3 {
        font-size: 1.8rem;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-method {
        padding: 0.8rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .social-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

/* Small mobile devices */
@media screen and (max-width: 375px) {
    .nav-container {
        padding: 0 0.6rem;
        height: 60px;
    }
    
    .logo i {
        font-size: 1.6rem;
    }
    
    .nav-links {
        width: 90%;
        padding-top: 65px;
    }
    
    .nav-links ul {
        gap: 1.2rem;
        padding: 1.2rem 0;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .japanese-name {
        font-size: 1.4rem;
    }
    
    .greeting {
        font-size: 1rem;
    }
    
    .title {
        font-size: 0.8rem;
    }
    
    .profile-picture {
        width: 200px;
        height: 200px;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        padding: 1.2rem;
    }
    
    .about-text {
        font-size: 0.9rem;
    }
    
    .tech-item {
        padding: 1rem;
    }
    
    .tech-item i {
        font-size: 1.5rem;
    }
    
    .tech-item span {
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input, 
    .form-group textarea {
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: var(--font-mono);
    pointer-events: auto; /* Ensure pointer events are enabled */
}

/* Toggle Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--green);
    color: var(--navy);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1001; /* Ensure it's above other elements */
    pointer-events: auto; /* Explicitly enable pointer events */
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Chatbot Box */
.chatbot-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: var(--navy);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

.chatbot-container.open .chatbot-box {
    transform: scale(1);
    opacity: 1;
}

/* Chatbot Header */
.chatbot-header {
    background-color: var(--dark-navy);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-navy);
}

.chatbot-title {
    color: var(--light-slate);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.chatbot-title img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--slate);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.chatbot-close:hover {
    color: var(--green);
}

/* Chatbot Messages Area */
.chatbot-messages {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 80%;
    padding: 12px;
    border-radius: 16px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.message.user {
    background-color: var(--green-tint);
    color: var(--light-slate);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.bot {
    background-color: var(--light-navy);
    color: var(--light-slate);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message-content {
    margin-bottom: 6px;
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    color: var(--slate);
    text-align: right;
}

/* Input Area */
.chatbot-input-container {
    padding: 12px;
    display: flex;
    gap: 10px;
    background-color: var(--dark-navy);
    border-top: 1px solid var(--light-navy);
}

.chatbot-input {
    flex-grow: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--light-navy);
    background-color: var(--lightest-navy);
    color: var(--light-slate);
    resize: none;
    font-family: var(--font-mono);
    font-size: 14px;
    transition: var(--transition);
    max-height: 120px;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--green);
}

.chatbot-send {
    background-color: var(--green);
    border: none;
    color: var(--navy);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chatbot-send:hover {
    transform: scale(1.05);
}

.chatbot-send:disabled {
    background-color: var(--slate);
    cursor: not-allowed;
}

/* Powered By */
.chatbot-powered-by {
    padding: 8px;
    background-color: var(--dark-navy);
    color: var(--slate);
    font-size: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.chatbot-powered-by img {
    height: 14px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
    background-color: var(--light-navy);
    border-radius: 16px;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    margin-top: 8px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--slate);
    border-radius: 50%;
    animation: typing-dot 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Talks Section */
.talks {
    padding: 100px 0;
    background-color: var(--dark-navy);
}

.talks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.talk-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--light-navy) 100%);
    border: 1px solid var(--lightest-navy);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.talk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--green), #00bfa5);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.talk-card:hover::before {
    transform: scaleX(1);
}

.talk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--green);
}

.talk-header {
    margin-bottom: 20px;
}

.talk-header h3 {
    color: var(--lightest-slate);
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.talk-date {
    display: inline-block;
    background: var(--green-tint);
    color: var(--green);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--green);
}

.talk-details h4 {
    color: var(--light-slate);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.talk-description {
    color: var(--slate);
    margin-bottom: 20px;
    line-height: 1.6;
}

.talk-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: flex-start;
    align-items: center;
}

.topic-tag {
    background: var(--lightest-navy);
    color: var(--light-slate);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--light-navy);
    transition: var(--transition);
    white-space: nowrap;
    display: inline-block;
}

.topic-tag:hover {
    background: var(--green-tint);
    color: var(--green);
    border-color: var(--green);
}

/* Talk Images */
.talk-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.talk-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--lightest-navy);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.talk-image:hover {
    transform: scale(1.05);
    border-color: var(--green);
    box-shadow: 0 8px 20px rgba(100, 255, 218, 0.2);
}

.talk-image::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 14px;
    opacity: 0;
    transition: var(--transition);
}

.talk-image:hover::after {
    opacity: 1;
}

/* Make images clickable */
.talk-image.clickable {
    cursor: pointer;
}

.talk-image.clickable:hover {
    transform: scale(1.05);
    border-color: var(--green);
    box-shadow: 0 8px 20px rgba(100, 255, 218, 0.2);
}

/* Mobile Responsiveness */
@media screen and (max-width: 576px) {
    .chatbot-box {
        width: calc(100vw - 60px);
        right: -15px;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .talks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .talk-card {
        padding: 25px;
    }
    
    .talk-header h3 {
        font-size: 1.1rem;
    }
    
    .talk-images {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
        margin: 15px 0;
    }
    
    .talk-image {
        height: 100px;
    }
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-navy);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

.preloader-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Responsive preloader for small devices */
@media screen and (max-width: 768px) {
    .preloader video {
        object-fit: contain;
    }
}

/* Image Modal Styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    opacity: 1;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: var(--navy);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-modal.show .image-modal-content {
    transform: scale(1);
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--light-slate);
    font-size: 28px;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: var(--transition);
}

.image-modal-close:hover {
    color: var(--green);
    background-color: rgba(100, 255, 218, 0.2);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.image-modal-caption {
    padding: 20px;
    color: var(--light-slate);
    text-align: center;
    font-size: 1rem;
    background-color: var(--dark-navy);
    border-top: 1px solid var(--light-navy);
}

/* Mobile responsive for modal */
@media screen and (max-width: 768px) {
    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .image-modal-close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .image-modal-caption {
        padding: 15px;
        font-size: 0.9rem;
    }
}