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

:root {
    --font-main: 'JetBrains Mono', monospace;
    /* Light theme (Usuki) */
    --color-text: #000;
    --color-background: #F0F0E8;
    --color-link: #000;
    --color-link-hover: #666;
    /* Dark theme (Sumi) */
    --color-text-dark: #E5E5DF;
    --color-background-dark: #1A1A1A;
    --color-link-dark: #A8D8B9;
    --color-link-hover-dark: #83AD94;
    --color-accent-dark: #665F4D;
    /* Highlight colors */
    --highlight-color: rgba(167, 139, 250, 0.2);
    --highlight-color-dark: rgba(167, 139, 250, 0.4);
}

body {
    font-family: var(--font-main);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme {
    background-color: var(--color-background-dark);
    color: var(--color-text-dark);
}

.dark-theme a {
    color: var(--color-link-dark);
    border-bottom: 1px solid var(--color-link-dark);
}

.dark-theme a:hover {
    color: var(--color-link-hover-dark);
}

.dark-theme blockquote {
    border-left: 2px solid var(--color-text-dark);
}

.dark-theme .client-list li::before,
.dark-theme .client-item::before {
    color: var(--color-text-dark);
}


/* Header controls */
.header-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.language-toggle,
.theme-toggle {
    background: none;
    border: 1px solid currentColor;
    padding: 8px 12px;
    font-family: var(--font-main);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.language-toggle:hover,
.theme-toggle:hover {
    opacity: 0.8;
}

.dark-theme .language-toggle,
.dark-theme .theme-toggle {
    border-color: var(--color-text-dark);
    color: var(--color-text-dark);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    padding-top: 5rem; /* Extra padding at top to account for fixed button */
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    opacity: 0;
    transition: opacity 0.8s ease;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}


h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

p {
    margin-bottom: 1rem;
}

#title {
    font-style: italic;
    margin-bottom: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

a {
    color: var(--color-link);
    text-decoration: none;
    border-bottom: 1px solid #000;
    transition: color 0.3s ease;
}

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

/* Header & Navigation */
header {
    margin-bottom: 3rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--color-text);
    transition: border-color 0.3s ease;
}

.dark-theme .profile-image {
    border-color: var(--color-text-dark);
}

.header-text {
    flex-grow: 1;
}

nav {
    margin-bottom: 6rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

nav a {
    font-weight: 700;
}

/* Sections */
section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.content {
    opacity: 0;
    margin-top: 0.5rem;
    transition: opacity 0.3s ease;
}


/* Service section */
.service {
    margin-bottom: 1.25rem;
}

.service:last-child {
    margin-bottom: 0;
}

/* Work Experience */
.work-entry {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-theme .work-entry {
    border-bottom: 1px solid rgba(229, 229, 223, 0.1);
}

.work-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.work-section-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.work-section-title:first-of-type {
    margin-top: 0;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.work-period {
    font-style: italic;
    opacity: 0.8;
    white-space: nowrap;
    margin-right: 1rem;
}

.company-name {
    font-size: 1rem;
    font-weight: 600;
    text-align: right;
    flex: 1;
}

.position {
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Client list */
.client-list {
    list-style: none;
    margin-left: 1rem;
}

.client-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.client-list li::before {
    content: "_";
    padding-right: 0.5rem;
}

/* Client Grid */
.client-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.client-item {
    flex: 1 0 100%;
    padding: 0.25rem 0;
    position: relative;
}

/* Media queries for responsive client grid */
@media (min-width: 576px) {
    .client-item {
        flex: 1 0 calc(50% - 0.5rem);
        padding: 0.5rem 0;
    }
    
    .client-grid {
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .client-item {
        flex: 1 0 calc(33.333% - 1rem);
    }
}

/* Removing all testimonial related styles */
.testimonial-container,
.testimonial-item,
.testimonial-item.active,
.testimonial-content,
.testimonial-controls,
.testimonial-button,
#testimonial-debug {
    display: none;
}

section#testimonials {
    display: none;
}

/* Animations */

/* Media queries */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
        padding-top: 4rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .testimonial-item {
        width: 90%;
    }
    
    .testimonial-item.left,
    .testimonial-item.right {
        display: none;
    }
    
    .work-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .company-name {
        text-align: left;
        font-size: 0.9rem;
        margin-top: 0.2rem;
        width: 100%;
    }
    
    .work-period {
        font-size: 0.9rem;
    }

}

/* Elegant highlight */
.highlight {
    box-shadow: inset 0 -0.5em 0 var(--highlight-color);
    border-radius: 0.1em;
    padding: 0 0.2em;
    transition: all 0.3s ease;
}

.dark-theme .highlight {
    box-shadow: inset 0 -0.5em 0 var(--highlight-color-dark);
}

/* Rest of your CSS below */
section#testimonials .content {
    opacity: 1 !important;
}

/* Testimonial Controls */
.testimonial-controls {
    margin-top: 30px;
    text-align: center;
}

.testimonial-button {
    background: transparent;
    border: 1px solid currentColor;
    padding: 8px 15px;
    font-family: var(--font-main);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.testimonial-button:hover {
    opacity: 0.7;
}

.dark-theme .testimonial-button {
    color: var(--color-text-dark);
}

/* Contact section */
.social {
    margin-top: 0.75rem;
}

.social a {
    margin-right: 1rem;
}

/* About Section Image */
.about-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-image-container {
    align-self: center;
    margin-bottom: 1rem;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.dark-theme .about-image {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .about-layout {
        flex-direction: row;
    }
    
    .about-image-container {
        flex: 0 0 40%;
        margin-right: 2rem;
        margin-bottom: 0;
    }
    
    .about-text {
        flex: 1;
    }
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.education-item {
    padding: 0.5rem 0;
}

@media (min-width: 576px) {
    .education-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer */
footer {
    background-color: var(--color-background);
    color: var(--color-text);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

footer .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-link-hover);
    border-bottom-color: var(--color-link-hover);
}

.dark-theme footer {
    background-color: var(--color-background-dark);
    color: var(--color-text-dark);
}

.dark-theme .footer-links a {
    color: var(--color-text-dark);
}

.dark-theme .footer-links a:hover {
    color: var(--color-link-hover-dark);
    border-bottom-color: var(--color-link-hover-dark);
} 