/* ===================================
   SEIYA KOIDE - Modern Elegant Portfolio
   Clean & Sophisticated Design
   =================================== */

/* CSS Variables */
:root {
    --primary: #1a1a1a;
    --secondary: #2d2d2d;
    --accent: #c9a96e;
    --accent-light: #e0c992;
    --text: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #ffffff;
    --off-white: #fafafa;
    --cream: #f5f3ef;
    --border: #e5e5e5;
    --font-display: 'Cormorant Garamond', serif;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth Scroll Container */
.smooth-scroll {
    width: 100%;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--white);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ===================================
   Navigation
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.5s var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav.scrolled .logo-text {
    color: var(--text);
}

.nav-menu {
    display: flex;
    gap: 48px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav.scrolled .nav-link {
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--transition);
}

.nav-link:hover {
    color: var(--white);
}

.nav.scrolled .nav-link:hover {
    color: var(--text);
}

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

/* Language Toggle Button */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 20px;
}

.nav.scrolled .lang-toggle {
    border-color: var(--border);
}

.lang-toggle:hover {
    border-color: var(--accent);
    background: rgba(201, 169, 110, 0.1);
}

.lang-current {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav.scrolled .lang-current {
    color: var(--text);
}

.lang-divider {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.nav.scrolled .lang-divider {
    color: var(--text-muted);
}

.lang-other {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav.scrolled .lang-other {
    color: var(--text-muted);
}

.lang-toggle:hover .lang-other {
    color: var(--accent);
}

/* Mobile Language Toggle */
.lang-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 12px 24px;
    cursor: pointer;
    margin-top: 40px;
    transition: all 0.3s ease;
}

.lang-toggle-mobile:hover {
    border-color: var(--accent);
    background: rgba(201, 169, 110, 0.05);
}

.lang-toggle-mobile .lang-current {
    color: var(--text);
    font-size: 0.85rem;
}

.lang-toggle-mobile .lang-divider {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.lang-toggle-mobile .lang-other {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.lang-toggle-mobile:hover .lang-other {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s ease;
}

.nav.scrolled .nav-toggle span {
    background: var(--text);
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--transition);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-link:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .nav-inner {
        padding: 0 24px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .lang-toggle {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    will-change: transform;
}

.hero-image {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 60px 100px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-text {
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent-light);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 300;
    color: var(--white);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line span {
    display: block;
    opacity: 0;
    transform: translateY(100%);
}

.hero-description {
    opacity: 0;
    transform: translateY(30px);
}

.hero-description p {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { 
        transform: scaleY(1);
        opacity: 1;
    }
    50% { 
        transform: scaleY(0.5);
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 24px 60px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .scroll-hint {
        display: none;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Hero Organic Design Elements */
.hero-organic-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.organic-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.blob-1 {
    width: 40vw;
    height: 40vw;
    max-width: 600px;
    max-height: 600px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    top: -10%;
    right: -10%;
    animation: floatBlob1 20s ease-in-out infinite;
}

.blob-2 {
    width: 30vw;
    height: 30vw;
    max-width: 450px;
    max-height: 450px;
    background: linear-gradient(225deg, #e0d0f0 0%, #c9a0dc 100%);
    bottom: 10%;
    left: -5%;
    animation: floatBlob2 25s ease-in-out infinite;
}

.blob-3 {
    width: 20vw;
    height: 20vw;
    max-width: 300px;
    max-height: 300px;
    background: linear-gradient(45deg, var(--accent-light) 0%, #fff 100%);
    top: 40%;
    right: 20%;
    animation: floatBlob3 18s ease-in-out infinite;
}

@keyframes floatBlob1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    }
    25% {
        transform: translate(-30px, 40px) scale(1.05);
        border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
    }
    50% {
        transform: translate(20px, -20px) scale(0.95);
        border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%;
    }
    75% {
        transform: translate(-20px, -30px) scale(1.02);
        border-radius: 50% 50% 60% 40% / 40% 60% 50% 50%;
    }
}

@keyframes floatBlob2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%;
    }
    33% {
        transform: translate(40px, -30px) scale(1.08);
        border-radius: 45% 55% 50% 50% / 50% 50% 55% 45%;
    }
    66% {
        transform: translate(-30px, 20px) scale(0.92);
        border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
    }
}

@keyframes floatBlob3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 55% 45% 48% 52% / 48% 55% 45% 52%;
    }
    50% {
        transform: translate(-40px, 30px) scale(1.1);
        border-radius: 48% 52% 55% 45% / 52% 48% 52% 48%;
    }
}

/* Organic Frame around image area */
.organic-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 70vh;
    max-width: 900px;
    max-height: 700px;
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    animation: morphFrame 12s ease-in-out infinite;
}

.organic-frame::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: 55% 45% 48% 52% / 48% 55% 45% 52%;
    animation: morphFrame 12s ease-in-out infinite reverse;
}

@keyframes morphFrame {
    0%, 100% {
        border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    }
    25% {
        border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
    }
    50% {
        border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%;
    }
    75% {
        border-radius: 50% 50% 60% 40% / 40% 60% 50% 50%;
    }
}

@media (max-width: 768px) {
    .blob-1, .blob-2, .blob-3 {
        filter: blur(40px);
        opacity: 0.1;
    }
    
    .organic-frame {
        width: 90vw;
        height: 60vh;
    }
}

/* ===================================
   Section Common Styles
   =================================== */
section {
    position: relative;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
}

.section-label.light .label-number,
.section-label.light .label-text {
    color: rgba(255, 255, 255, 0.6);
}

.label-number {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.label-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-header {
    margin-bottom: 80px;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: 180px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
}

.about-image-col {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    overflow: visible;
}

/* Organic blob shape for image */
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, var(--cream) 100%);
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    z-index: -2;
    opacity: 0.15;
    animation: morphBlob 8s ease-in-out infinite;
    transition: all 0.5s var(--transition);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid var(--accent);
    border-radius: 55% 45% 48% 52% / 48% 55% 45% 52%;
    z-index: -1;
    animation: morphBlobBorder 8s ease-in-out infinite reverse;
    transition: all 0.5s var(--transition);
}

@keyframes morphBlob {
    0%, 100% {
        border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    }
    25% {
        border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
    }
    50% {
        border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%;
    }
    75% {
        border-radius: 50% 50% 60% 40% / 40% 60% 50% 50%;
    }
}

@keyframes morphBlobBorder {
    0%, 100% {
        border-radius: 55% 45% 48% 52% / 48% 55% 45% 52%;
    }
    25% {
        border-radius: 48% 52% 45% 55% / 55% 45% 52% 48%;
    }
    50% {
        border-radius: 45% 55% 52% 48% / 48% 52% 55% 45%;
    }
    75% {
        border-radius: 52% 48% 55% 45% / 45% 48% 52% 55%;
    }
}

.about-image-wrapper:hover::before {
    opacity: 0.25;
    transform: scale(1.05);
}

.about-image-wrapper:hover::after {
    border-color: var(--accent-light);
    transform: scale(1.02);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%;
    transition: all 1s var(--transition-slow);
    animation: morphImage 8s ease-in-out infinite;
}

@keyframes morphImage {
    0%, 100% {
        border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%;
    }
    25% {
        border-radius: 45% 55% 50% 50% / 50% 50% 55% 45%;
    }
    50% {
        border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
    }
    75% {
        border-radius: 50% 50% 55% 45% / 45% 50% 50% 55%;
    }
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.03);
}

/* Remove old frame style */
.image-frame {
    display: none;
}

.about-content-col {
    padding-left: 40px;
}

.about-title {
    font-family: var(--font-body);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text);
    opacity: 0;
    transform: translateY(30px);
}

.about-title em {
    font-style: normal;
    color: var(--accent);
}

.about-text {
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(30px);
}

.about-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 2;
}

.about-stats {
    display: flex;
    gap: 48px;
    opacity: 0;
    transform: translateY(30px);
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    color: var(--text);
    line-height: 1;
}

.stat-unit {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
    margin-left: 4px;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 8px;
}

@media (max-width: 992px) {
    .about {
        padding: 120px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-content-col {
        padding-left: 0;
    }
    
    .about-image-wrapper {
        max-width: 500px;
    }
}

/* ===================================
   Career Section
   =================================== */
.career {
    padding: 180px 0;
    background: var(--cream);
}

.career-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(40px);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    padding-top: 24px;
}

.timeline-card {
    background: var(--white);
    padding: 40px;
    position: relative;
    transition: all 0.5s var(--transition);
    border: 1px solid transparent;
}

.timeline-card:hover {
    transform: translateX(10px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.timeline-item.highlight .timeline-card {
    border-left: 3px solid var(--accent);
}

.timeline-item.current .timeline-card {
    background: var(--primary);
}

.timeline-item.current .card-company,
.timeline-item.current .card-position,
.timeline-item.current .card-desc {
    color: var(--white);
}

.timeline-item.current .card-position {
    color: var(--accent-light);
}

.card-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    background: rgba(201, 169, 110, 0.1);
    margin-bottom: 16px;
}

.card-company {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.card-position {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.card-tags span {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .career {
        padding: 100px 0;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .timeline-year {
        padding-top: 0;
    }
    
    .timeline-card {
        padding: 30px;
    }
}

/* ===================================
   Philosophy Section
   =================================== */
.philosophy {
    position: relative;
    padding: 160px 0;
    background: var(--cream);
    overflow: hidden;
}

.philosophy-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

/* Philosophy Image Area */
.philosophy-image-area {
    position: relative;
}

.philosophy-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.philosophy-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.8s var(--transition-slow);
}

.philosophy-image-frame:hover .philosophy-img {
    transform: scale(1.05);
}

.philosophy-frame-accent {
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--accent);
    border-radius: 20px;
    z-index: -1;
    transition: all 0.5s var(--transition);
}

.philosophy-image-frame:hover .philosophy-frame-accent {
    top: -20px;
    left: -20px;
}

/* Philosophy Content Area */
.philosophy-content-area {
    padding-left: 20px;
}

.philosophy-quote {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
}

.philosophy-quote p {
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--text);
    line-height: 2;
}

.quote-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--transition);
}

.quote-word.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-word.highlight {
    color: var(--accent);
    font-weight: 500;
}

/* Compact Value Tags */
.philosophy-values-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
}

.value-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    transition: all 0.3s var(--transition);
}

.value-tag:hover {
    border-color: var(--accent);
    background: rgba(201, 169, 110, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.value-tag i {
    font-size: 0.9rem;
    color: var(--accent);
}

.value-tag span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

@media (max-width: 992px) {
    .philosophy-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .philosophy-content-area {
        padding-left: 0;
        text-align: center;
    }
    
    .philosophy-values-compact {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .philosophy {
        padding: 100px 0;
    }
    
    .philosophy-quote p {
        font-size: 1.4rem;
    }
    
    .value-tag {
        padding: 10px 16px;
    }
}

/* ===================================
   Expertise Section
   =================================== */
.expertise {
    padding: 180px 0;
    background: var(--white);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.expertise-card {
    background: var(--off-white);
    padding: 48px 40px;
    border: 1px solid var(--border);
    transition: all 0.5s var(--transition);
    opacity: 0;
    transform: translateY(40px);
}

.expertise-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.expertise-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    margin-bottom: 28px;
    transition: all 0.4s var(--transition);
}

.expertise-card:hover .expertise-icon {
    background: var(--accent);
    border-color: var(--accent);
}

.expertise-icon i {
    font-size: 1.4rem;
    color: var(--accent);
    transition: color 0.4s var(--transition);
}

.expertise-card:hover .expertise-icon i {
    color: var(--white);
}

.expertise-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.expertise-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 8px 0;
    padding-left: 16px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.expertise-list li:last-child {
    border-bottom: none;
}

.expertise-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

/* Skills Summary */
.skills-summary {
    display: flex;
    gap: 60px;
    padding: 60px;
    background: var(--cream);
    opacity: 0;
    transform: translateY(40px);
}

.summary-item {
    flex: 1;
}

.summary-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-tags span {
    font-size: 0.85rem;
    color: var(--text);
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: all 0.3s var(--transition);
}

.summary-tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 1200px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .expertise {
        padding: 100px 0;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .expertise-card {
        padding: 36px 28px;
    }
    
    .skills-summary {
        flex-direction: column;
        gap: 40px;
        padding: 40px 28px;
    }
}

/* ===================================
   Personal Story Section
   =================================== */
.personal-story {
    padding: 140px 0;
    background: var(--white);
    position: relative;
}

.personal-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--border), transparent);
}

.story-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
}

.story-header {
    margin-bottom: 60px;
}

.story-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.story-text {
    text-align: left;
}

.story-text p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 2.2;
    margin-bottom: 32px;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-highlight {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: var(--text) !important;
    padding: 24px 0;
    border-left: 3px solid var(--accent);
    padding-left: 24px;
    margin: 40px 0 !important;
    background: linear-gradient(90deg, rgba(201, 169, 110, 0.05) 0%, transparent 100%);
}

.story-signature {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: right;
    position: relative;
}

.signature-wrapper {
    display: inline-block;
    position: relative;
}

.signature-name {
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    transform: rotate(-3deg);
}

.signature-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    animation: signatureLine 1s ease-out 0.5s forwards;
}

@keyframes signatureLine {
    to {
        transform: scaleX(1);
    }
}

.signature-underline {
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-light));
}

@media (max-width: 768px) {
    .personal-story {
        padding: 100px 0;
    }
    
    .story-content {
        padding: 0 20px;
    }
    
    .story-text p {
        font-size: 0.9rem;
        line-height: 2;
    }
    
    .story-highlight {
        font-size: 1rem !important;
    }
    
    .signature-name {
        font-size: 2rem;
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--primary);
    padding: 100px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.15em;
}

.footer-company {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 4px;
}

.footer-position {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--accent-light);
}

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

.footer-bottom p {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

/* ===================================
   Animations & Reveals
   =================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition-slow);
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.about-stats .stat-card:nth-child(1) { transition-delay: 0.1s; }
.about-stats .stat-card:nth-child(2) { transition-delay: 0.2s; }

.philosophy-values .value-item:nth-child(1) { transition-delay: 0.1s; }
.philosophy-values .value-item:nth-child(2) { transition-delay: 0.2s; }
.philosophy-values .value-item:nth-child(3) { transition-delay: 0.3s; }

/* ===================================
   Secret Mode Styles
   =================================== */

/* Secret Indicator */
.secret-indicator {
    position: fixed;
    top: 100px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2d1f3d, #1a1a2e);
    border: 1px solid #6b4c8a;
    color: #c9a0dc;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    z-index: 1001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s var(--transition-slow);
    pointer-events: none;
}

.secret-indicator i:first-child {
    font-size: 1rem;
}

body.secret-mode .secret-indicator {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.secret-close {
    background: transparent;
    border: none;
    color: #c9a0dc;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.secret-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Secret Trigger - Peeking from Card Right Edge */
.timeline-item.current .timeline-card {
    position: relative;
    overflow: visible;
}

.secret-trigger-peek {
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%) translateX(50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px 12px 12px;
    background: linear-gradient(135deg, #2d1f3d, #1a1a2e);
    border: 2px solid #6b4c8a;
    border-radius: 25px 8px 8px 25px;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    box-shadow: 0 4px 20px rgba(107, 76, 138, 0.4);
    animation: peekFromEdge 3s ease-in-out infinite;
    z-index: 10;
    writing-mode: horizontal-tb;
}

@keyframes peekFromEdge {
    0%, 100% { 
        transform: translateY(-50%) translateX(60%);
        opacity: 0.7;
    }
    15% {
        transform: translateY(-50%) translateX(20%);
        opacity: 1;
    }
    30% {
        transform: translateY(-50%) translateX(45%);
        opacity: 0.9;
    }
    45% {
        transform: translateY(-50%) translateX(25%);
        opacity: 1;
    }
    60% {
        transform: translateY(-50%) translateX(55%);
        opacity: 0.8;
    }
    80% {
        transform: translateY(-50%) translateX(40%);
        opacity: 0.9;
    }
}

.secret-trigger-peek:hover {
    animation: none;
    transform: translateY(-50%) translateX(5%);
    opacity: 1;
    box-shadow: 0 8px 30px rgba(107, 76, 138, 0.6);
    border-color: #c9a0dc;
    padding-right: 20px;
}

.secret-trigger-peek i {
    font-size: 1.1rem;
    color: #c9a0dc;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.secret-trigger-peek:hover i {
    transform: rotate(-10deg) scale(1.1);
}

.secret-trigger-peek span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: #e0d0f0;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.secret-trigger-peek:hover span {
    opacity: 1;
    max-width: 100px;
    margin-left: 4px;
}

body.secret-mode .secret-trigger-peek {
    display: none;
}

@media (max-width: 768px) {
    .secret-trigger-peek {
        right: -10px;
        padding: 10px 12px 10px 10px;
    }
    
    .secret-trigger-peek i {
        font-size: 1rem;
    }
    
    .secret-indicator {
        top: auto;
        bottom: 20px;
        right: 20px;
        font-size: 0.7rem;
    }
}

/* Secret Hint on Card - Hidden */
.secret-hint {
    display: none;
}

/* Secret Career Item */
.secret-career {
    display: none;
    opacity: 0;
    transform: translateY(40px);
}

body.secret-mode .secret-career {
    display: grid;
    animation: secretReveal 0.8s var(--transition-slow) forwards;
}

@keyframes secretReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.secret-card {
    background: linear-gradient(135deg, #2d1f3d, #1a1a2e) !important;
    border-color: #6b4c8a !important;
}

.secret-card .card-company,
.secret-card .card-position,
.secret-card .card-desc {
    color: #e0d0f0 !important;
}

.secret-card .card-position {
    color: #c9a0dc !important;
}

.secret-badge {
    background: rgba(107, 76, 138, 0.3) !important;
    color: #c9a0dc !important;
    border: 1px solid #6b4c8a;
}

.secret-badge i {
    margin-right: 6px;
}

.card-achievement {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(107, 76, 138, 0.2);
    border-left: 3px solid #c9a0dc;
    font-size: 0.85rem;
    color: #c9a0dc;
}

.card-achievement i {
    font-size: 1rem;
}

.secret-card .card-tags-light span {
    background: rgba(107, 76, 138, 0.3);
    color: #e0d0f0;
    border-color: #6b4c8a;
}

/* Secret Expertise */
.secret-expertise {
    display: none;
    opacity: 0;
}

body.secret-mode .secret-expertise {
    display: block;
    animation: secretReveal 0.8s var(--transition-slow) 0.2s forwards;
}

.secret-expertise {
    background: linear-gradient(135deg, #2d1f3d, #1a1a2e) !important;
    border-color: #6b4c8a !important;
}

.secret-expertise .expertise-title,
.secret-expertise .expertise-desc {
    color: #e0d0f0 !important;
}

.secret-expertise .expertise-list li {
    color: #c9a0dc;
    border-color: rgba(107, 76, 138, 0.3);
}

.secret-expertise .expertise-list li::before {
    background: #c9a0dc;
}

.secret-icon {
    background: rgba(107, 76, 138, 0.2) !important;
    border-color: #6b4c8a !important;
}

.secret-icon i {
    color: #c9a0dc !important;
}

.secret-expertise:hover .secret-icon {
    background: #6b4c8a !important;
}

.secret-expertise:hover .secret-icon i {
    color: #fff !important;
}

.secret-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #c9a0dc;
    background: rgba(107, 76, 138, 0.3);
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.1em;
}

.expertise-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(107, 76, 138, 0.2);
    border-left: 3px solid #c9a0dc;
    font-size: 0.8rem;
    color: #c9a0dc;
}

.expertise-badge i {
    font-size: 1rem;
}

/* Secret Tags */
.secret-tag {
    display: none !important;
}

body.secret-mode .secret-tag {
    display: inline-block !important;
    background: linear-gradient(135deg, #2d1f3d, #1a1a2e) !important;
    border-color: #6b4c8a !important;
    color: #c9a0dc !important;
}

/* Card Tags Light */
.card-tags-light {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.card-tags-light span {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    padding: 6px 12px;
    background: var(--white);
    border: 1px solid var(--border);
}

/* Secret Mode Body Effect */
body.secret-mode {
    --accent: #6b4c8a;
    --accent-light: #c9a0dc;
}

body.secret-mode .nav.scrolled {
    background: rgba(26, 26, 46, 0.95);
}

body.secret-mode .nav.scrolled .logo-text,
body.secret-mode .nav.scrolled .nav-link {
    color: #e0d0f0;
}

body.secret-mode .nav.scrolled .nav-toggle span {
    background: #e0d0f0;
}

/* Transition for secret mode toggle */
body {
    transition: --accent 0.5s ease, --accent-light 0.5s ease;
}

/* ===================================
   Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}
