/* ====================================
   CSS Design Awards Level - Hero Section
==================================== */

:root {
    /* Elegant Colors */
    --color-ivory: #FDFCF8;
    --color-cream: #F5F1E8;
    --color-beige: #E8DFD0;
    --color-gold: #C9A860;
    --color-gold-dark: #B8954D;
    --color-charcoal: #2C2C2C;
    --color-gray-warm: #8B8376;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* 3D Perspective */
    --perspective: 1200px;
}

/* ====================================
   Award-Winning Hero Section
==================================== */
.hero-award {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    perspective: var(--perspective);
}

/* 3D Background Layers */
.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.bg-layer-1 {
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-ivory) 100%);
    z-index: 1;
}

.bg-layer-2 {
    background: url('https://www.genspark.ai/api/files/s/p66ZkW8d') center/cover;
    opacity: 0.15;
    z-index: 2;
    transform: translateZ(20px);
    filter: blur(1px);
}

.bg-layer-3 {
    background: radial-gradient(circle at 20% 30%, rgba(201, 168, 96, 0.08) 0%, transparent 50%);
    z-index: 3;
    transform: translateZ(40px);
}

/* Broken Grid Container */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8vw;
    transform-style: preserve-3d;
}

/* Broken Grid Layout */
.hero-broken-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 2vw;
    width: 100%;
    height: 90vh;
    max-width: 1800px;
    margin: 0 auto;
}

/* Glassmorphism Card - Main Content */
.hero-main-card {
    grid-column: 1 / 8;
    grid-row: 2 / 7;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 5vw;
    box-shadow: var(--glass-shadow);
    transform: translateZ(60px) rotateY(-2deg);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.hero-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 168, 96, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-main-card:hover {
    transform: translateZ(80px) rotateY(0deg);
}

/* Typography - Award Level */
.hero-label {
    font-family: var(--font-accent);
    font-size: clamp(0.875rem, 1.2vw, 1.125rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 2rem;
    font-weight: 300;
    position: relative;
    display: inline-block;
}

.hero-label::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--color-gold);
}

.hero-brand {
    margin-bottom: 3rem;
}

.hero-logo-image {
    animation: logoFadeIn 1.2s ease-out;
}

.hero-logo-image img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
    transition: all 0.4s ease;
}

.hero-logo-image img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 24px rgba(201, 168, 96, 0.2));
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.hero-logo {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 7rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-gray-warm) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-subtitle-en {
    font-family: var(--font-accent);
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--color-gray-warm);
}

.hero-title {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-charcoal);
    margin-bottom: 2.5rem;
    position: relative;
}

.hero-title span {
    color: var(--color-gold);
    font-weight: 600;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.9;
    color: var(--color-gray-warm);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* CTA Buttons - Elegant */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-award {
    position: relative;
    padding: 1.2rem 3rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-award.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 10px 30px rgba(201, 168, 96, 0.3);
}

.btn-award.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(201, 168, 96, 0.4);
}

.btn-award.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: var(--color-charcoal);
    border: 1px solid var(--color-beige);
}

.btn-award.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

/* Glassmorphism Card - Image */
.hero-image-card {
    grid-column: 8 / 13;
    grid-row: 1 / 6;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transform: translateZ(40px) rotateY(2deg);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-image-card:hover {
    transform: translateZ(60px) rotateY(0deg);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.6s ease;
}

.hero-image-card:hover img {
    filter: grayscale(0%) contrast(1.05);
}

/* Glassmorphism Card - Stats */
.hero-stats-card {
    grid-column: 9 / 13;
    grid-row: 6 / 9;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    transform: translateZ(50px) rotateY(3deg);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-stats-card:hover {
    transform: translateZ(70px) rotateY(0deg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    color: var(--color-gray-warm);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Glassmorphism Card - Profile */
.hero-profile-card {
    grid-column: 1 / 5;
    grid-row: 7 / 11;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--glass-shadow);
    transform: translateZ(45px) rotateY(-3deg);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-profile-card:hover {
    transform: translateZ(65px) rotateY(0deg);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-profile-card .profile-info h3 {
    font-family: var(--font-display);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.hero-profile-card .profile-info p {
    font-size: clamp(0.625rem, 0.9vw, 0.75rem);
    color: var(--color-gray-warm);
    line-height: 1.4;
}

/* Decorative Elements */
.hero-decoration {
    position: absolute;
    pointer-events: none;
}

.decoration-circle-1 {
    top: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(201, 168, 96, 0.2);
    border-radius: 50%;
    transform: translateZ(80px);
}

.decoration-circle-2 {
    bottom: 15%;
    left: 5%;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(201, 168, 96, 0.15);
    border-radius: 50%;
    transform: translateZ(90px);
}

.decoration-line {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    top: 50%;
    right: -50px;
    transform: translateZ(100px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%) translateZ(100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 20;
}

.scroll-text {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 300;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateZ(var(--z));
    }
    50% {
        transform: translateY(-20px) translateZ(var(--z));
    }
}

.hero-image-card {
    animation: float 6s ease-in-out infinite;
    --z: 40px;
}

.hero-stats-card {
    animation: float 7s ease-in-out infinite;
    animation-delay: 0.5s;
    --z: 50px;
}

.hero-profile-card {
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
    --z: 45px;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-main-card,
.hero-image-card,
.hero-stats-card,
.hero-profile-card {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-main-card {
    animation-delay: 0.2s;
}

.hero-image-card {
    animation-delay: 0.4s;
}

.hero-stats-card {
    animation-delay: 0.6s;
}

.hero-profile-card {
    animation-delay: 0.8s;
}

/* ====================================
   Responsive Design
==================================== */
@media (max-width: 1200px) {
    .hero-broken-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 2rem;
    }
    
    .hero-main-card {
        grid-column: 1 / -1;
        grid-row: auto;
        transform: translateZ(30px);
        padding: 3rem;
    }
    
    .hero-image-card {
        grid-column: 1 / -1;
        grid-row: auto;
        height: 400px;
        transform: translateZ(20px);
    }
    
    .hero-stats-card {
        grid-column: 1 / -1;
        grid-row: auto;
        transform: translateZ(25px);
        padding: 2rem;
    }
    
    .hero-profile-card {
        grid-column: 1 / -1;
        grid-row: auto;
        transform: translateZ(22px);
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content-wrapper {
        padding: 5vh 5vw;
    }
}

@media (max-width: 768px) {
    .hero-award {
        perspective: 800px;
    }
    
    .hero-main-card,
    .hero-image-card,
    .hero-stats-card,
    .hero-profile-card {
        border-radius: 20px;
        padding: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-award {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Logo responsive layout */
    .hero-main-card > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    .hero-logo-image {
        text-align: center;
    }
    
    .hero-logo-image img {
        width: 160px !important;
    }
}