/* Dojo-inspired design system with traditional Japanese aesthetics */
:root {
    /* Color Variables - HSL format */
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(0, 0%, 10%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(0, 0%, 10%);
    --muted: hsl(30, 5%, 92%);
    --muted-foreground: hsl(0, 0%, 45%);
    --border: hsl(30, 5%, 88%);
    
    /* Custom dojo colors */
    --dojo-red: hsl(0, 70%, 25%);
    --dojo-red-light: hsl(0, 70%, 35%);
    --dojo-charcoal: hsl(0, 0%, 17%);
    --dojo-gold: hsl(43, 74%, 49%);
    --dojo-gold-light: hsl(43, 74%, 65%);
    --dojo-cream: hsl(45, 25%, 95%);
    --dojo-ink: hsl(0, 0%, 8%);
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--dojo-red) 0%, var(--dojo-charcoal) 100%);
    --gradient-section: linear-gradient(180deg, var(--background) 0%, var(--dojo-cream) 100%);
    --gradient-card: linear-gradient(145deg, var(--card) 0%, var(--dojo-cream) 100%);
    
    /* Shadows */
    --shadow-dojo: 0 10px 40px -10px hsla(0, 70%, 25%, 0.3);
    --shadow-elegant: 0 4px 20px -4px hsla(0, 0%, 17%, 0.2);
    --shadow-soft: 0 2px 10px -2px hsla(0, 0%, 17%, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

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

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    color: var(--dojo-ink);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.text-gold {
    color:rgb(254, 220, 139);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-image:url(../static/pathway-middle-buildings-dark-sky-japan.jpg) ;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-blend-mode: darken;
    display: flex;
    align-items:center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJtIDYwIDAgTCAwIDAgMCA2MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJoc2woMCAwJSAwJSAvIDAuMDUpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiIC8+PC9zdmc+");
    opacity: 0.2;
}

.hero-container {

    backdrop-filter: blur(2px);
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 90px 10px;
    padding: 0 1.5rem;
}

.hero-logo {
    
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    
}

.logo-image {
    height: 8rem;
    width: auto;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

.hero-title {
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-size: 4rem;
    font-weight: bold;
    color: var(--dojo-gold);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-domain {
    font-size: 1.5rem;
    color: rgb(212, 108, 23);
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
}

.hero-tagline {
    font-size: 1.5rem;
    color: rgba(255, 254, 254, 0.9);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.hero-principles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.principle-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.principle-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
    color: var(--dojo-gold);
}

.principle-item span {
    font-size: 1.125rem;
}

.hero-cta {
    background-color: var(--dojo-gold);
    color: var(--dojo-ink);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    box-shadow: var(--shadow-dojo);
    transition: all 0.5s ease-out;
}

.hero-cta:hover {
    background-color: var(--dojo-gold-light);
    transform: translateY(-2px);
}

.cta-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator-bar {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    display: flex;
    justify-content: center;
}

.scroll-indicator-dot {
    width: 0.25rem;
    height: 0.75rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40%, 43% {
        transform: translateX(-50%) translateY(-30px);
    }
    70% {
        transform: translateX(-50%) translateY(-15px);
    }
    90% {
        transform: translateX(-50%) translateY(-4px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Philosophy Section */
.philosophy-section {
    padding: 5rem 0;
    background: var(--gradient-section);
}

.philosophy-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.japanese-text {
    font-size: 2rem;
    color: var(--dojo-gold);
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
}

.philosophy-text {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Projects Section */
.projects-section {
    padding: 5rem 0;
    background-color: var(--background);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

/* Portfolio Section */
.portfolio-section {
    padding: 5rem 0;
    background: var(--gradient-section);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    max-width: 96rem;
    margin: 0 auto;
}

/* Project Cards */
.project-card {
    background: var(--gradient-card);
    border: 1px solid hsla(30, 5%, 88%, 0.5);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-elegant);
}

.card-header {
    padding: 1.5rem 1.5rem 0;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dojo-ink);
}

.live-badge {
    background-color: var(--dojo-gold);
    color: var(--dojo-ink);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.5;
}

.card-content {
    padding: 0 1.5rem 1rem;
}

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

.tag {
    border: 1px solid hsla(43, 74%, 49%, 0.3);
    color: var(--dojo-red);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: transparent;
}

.card-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.5s ease-out;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--dojo-red);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dojo-red-light);
}

.btn-outline {
    border: 1px solid hsla(0, 0%, 17%, 0.2);
    background-color: transparent;
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: var(--dojo-charcoal);
    color: white;
}

.btn-linkedin:hover {
    background-color: var(--dojo-gold);
    color: var(--dojo-ink);
}

.btn-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--background);
}

.contact-content {
    max-width: 32rem;
    margin: 0 auto;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

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

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: var(--dojo-charcoal);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-domain {
        font-size: 1.25rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .japanese-text {
        font-size: 1.5rem;
    }
    
    .projects-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-principles {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        min-width: 150px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .logo-image {
        height: 6rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .project-card {
        margin: 0 0.5rem;
    }
}