/* 
    Shiden Works Homepage Styles
    Theme Colors:
    - Primary (Navy): #101622 / #1A2534
    - Secondary (Gold): #C8A97E / #E6CDA3
    - Accent (Crimson): #8B2E2E / #A93226
    - Text (Off-white): #EAE5D9
*/

:root {
    --color-bg-dark: #0B0E14;
    --color-bg-panel: #141C29;
    --color-primary: #1A2534;
    --color-gold: #C8A97E;
    --color-gold-light: #E6CDA3;
    --color-gold-dark: #9A7D54;
    --color-crimson: #8B2E2E;
    --color-crimson-hover: #A93226;
    --color-text-main: #EAE5D9;
    --color-text-muted: #A3A8B3;

    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    
    --transition-standard: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.05em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-standard);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-crimson), var(--color-crimson-hover));
    color: #fff;
    border: 1px solid var(--color-gold-dark);
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(200, 169, 126, 0.4);
    border-color: var(--color-gold-light);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-gold);
    letter-spacing: 0.2em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; text-shadow: 0 0 10px var(--color-gold); }
    100% { opacity: 0.5; }
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition-standard);
    background: linear-gradient(to bottom, rgba(11, 14, 20, 0.9), transparent);
}

.main-header.scrolled {
    background-color: rgba(20, 28, 41, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    border-bottom: 1px solid rgba(200, 169, 126, 0.2);
}

.header-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    transition: var(--transition-standard);
}

.main-header.scrolled .logo-img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-main);
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: var(--transition-standard);
    transform: translateX(-50%);
}

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

.main-nav a:hover {
    color: var(--color-gold-light);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-gold);
    transition: 0.3s;
}

/* Active state for hamburger */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_bg.png'); /* Will be set or replaced */
    background-size: cover;
    background-position: center;
    z-index: -1;
    /* initial scale for zoom effect */
    transform: scale(1.05); 
    transition: transform 10s ease-out;
}

.hero.loaded .hero-background {
    transform: scale(1);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 14, 20, 0.3) 0%, rgba(11, 14, 20, 0.8) 80%, rgba(11, 14, 20, 1) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    letter-spacing: 0.3em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-title {
    font-size: 5rem;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8), 0 0 30px rgba(200, 169, 126, 0.3);
    background: linear-gradient(to bottom, #fff, var(--color-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    color: var(--color-text-main);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    letter-spacing: 0.2em;
}

.scroll-indicator .arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Sections General */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.title-decoration {
    width: 60px;
    height: 2px;
    background: var(--color-crimson);
    margin: 0 auto;
    position: relative;
}

.title-decoration::before {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-gold);
    font-size: 12px;
    background-color: var(--color-bg-dark);
    padding: 0 10px;
}

.dark-bg .title-decoration::before {
    background-color: var(--color-bg-panel);
}

.dark-bg {
    background-color: var(--color-bg-panel);
    border-top: 1px solid rgba(200, 169, 126, 0.1);
    border-bottom: 1px solid rgba(200, 169, 126, 0.1);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
}

.image-frame {
    position: relative;
    padding: 15px;
}

.image-frame::before, .image-frame::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-gold);
    transition: var(--transition-slow);
}

.image-frame::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.image-frame::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.image-frame:hover::before, .image-frame:hover::after {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.image-frame img {
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    filter: brightness(0.9) contrast(1.1);
    transition: var(--transition-standard);
}

.image-frame:hover img {
    filter: brightness(1) contrast(1.1);
    transform: scale(1.02);
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.feature-card {
    background: rgba(20, 28, 41, 0.5);
    border: 1px solid rgba(200, 169, 126, 0.15);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-standard);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(200, 169, 126, 0.4);
}

.feature-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.feature-img-wrapper img, .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-card:hover .feature-img-wrapper img {
    transform: scale(1.05);
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--color-bg-panel), transparent);
    opacity: 0.8;
}

.feature-info {
    padding: 30px;
    position: relative;
    z-index: 1;
    margin-top: -40px;
}

.feature-title {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.feature-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--color-crimson);
    margin-right: 10px;
}

.feature-desc {
    color: var(--color-text-muted);
}

/* Call to Action */
.cta {
    background: url('assets/hero_bg.png') center/cover fixed;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(5px);
}

.cta-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    position: relative;
    z-index: 1;
}

/* Footer */
.main-footer {
    background-color: #05070A;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(200, 169, 126, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-company {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.footer-links ul {
    display: flex;
    gap: 30px;
}

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

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(20, 28, 41, 0.98);
        backdrop-filter: blur(10px);
        padding: 100px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 30px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-action {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
