/* International Typographic Style Portfolio */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@font-face {
    font-family: 'Mantou Sans';
    src: url('MantouSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-mid: #cccccc;
    --gray-dark: #666666;
    --red: #ff0000;
    --spacing-unit: 8px;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--black);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.1s ease;
}

.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 3500;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-transition-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Animation Classes */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Character Reveal Animation */
.char-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: charReveal 0.5s ease forwards;
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 2rem; }
h2 { font-size: 3.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.25rem; }
h5 { 
    font-size: 0.875rem; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--black);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.5;
}

/* Layout Containers */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 4);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--black);
    z-index: 1000;
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: calc(var(--spacing-unit) * 2) 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
}

.nav-right a {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
}

.nav-right a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--black);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-right a:hover {
    opacity: 1;
}

/* Hero Section - Luminaloom Style */
.hero-lumina {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 50px);
    border-bottom: 1px solid var(--black);
    overflow: hidden;
}

.hero-title-section {
    padding: 10px 40px 0;
    flex-shrink: 0;
}

.hero-main-title {
    font-family: 'Mantou Sans', 'Arial Black', 'Helvetica Neue', sans-serif;
    font-size: 24vh;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.hero-sub-nav {
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    flex-shrink: 0;
}

.hero-sub-nav a {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
}

.hero-sub-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--black);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.hero-sub-nav a:hover {
    opacity: 1;
}

.hero-content-section {
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
    gap: 12px;
    flex-shrink: 0;
}

.hero-label {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-description {
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0.02em;
    max-width: 380px;
}

.hero-image-section {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.hero-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.hero-image-section:hover img {
    transform: scale(1.02);
}

.hero-symbol {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    border: 4px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

.hero-symbol span {
    font-family: 'Arial Black', sans-serif;
    font-size: 50px;
    font-weight: 900;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* Work Section */
.work-section {
    padding: calc(var(--spacing-unit) * 12) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: calc(var(--spacing-unit) * 8);
    padding-bottom: calc(var(--spacing-unit) * 3);
    border-bottom: 1px solid var(--black);
}

.year {
    font-size: 0.875rem;
    color: var(--gray-dark);
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--black);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.view-more-btn:hover {
    opacity: 0.6;
}

.arrow-icon {
    position: relative;
    width: 24px;
    height: 14px;
}

.arrow-icon::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--black);
}

.arrow-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border: 2px solid var(--black);
    border-left: none;
    border-top: none;
    border-radius: 0 0 12px 0;
    transform: rotate(90deg);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: calc(var(--spacing-unit) * 8);
    row-gap: calc(var(--spacing-unit) * 4);
}

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

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: var(--gray-light);
    margin-bottom: calc(var(--spacing-unit) * 3);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 300;
    color: var(--black);
    position: relative;
    transition: opacity 0.3s ease;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(var(--black) 1px, transparent 1px),
        linear-gradient(90deg, var(--black) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.05;
    z-index: 1;
}

/* Number displayed in center */
.placeholder-image {
    opacity: 0.15;
}

.project-card:hover .placeholder-image {
    opacity: 0.25;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1);
}

.project-title {
    font-weight: 500;
}

.project-meta {
    font-size: 0.875rem;
    color: var(--gray-dark);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.project-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--black);
}

/* About Section */
.about-section {
    padding: calc(var(--spacing-unit) * 12) 0;
    background-color: var(--gray-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: calc(var(--spacing-unit) * 12);
}

.about-content h3 {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: calc(var(--spacing-unit) * 3);
    max-width: 600px;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 6);
}

.detail-block h5 {
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--black);
}

.detail-block ul {
    list-style: none;
}

.detail-block li {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

/* Contact Section */
.contact-section {
    padding: calc(var(--spacing-unit) * 12) 0;
    border-top: 1px solid var(--black);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: calc(var(--spacing-unit) * 12);
}

.contact-info h3 {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.contact-info p {
    font-size: 1.125rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 4);
    align-items: flex-start;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.contact-details,
.contact-details * {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.contact-link {
    font-size: 1.5rem;
    font-weight: 500;
    border-bottom: 2px solid var(--black);
    padding-bottom: 4px;
}

.contact-link:hover {
    opacity: 1;
    color: var(--red);
    border-color: var(--red);
}

.social-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
}

.social-links a {
    font-size: 0.875rem;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.social-links a:hover {
    opacity: 1;
    border-color: var(--black);
}

/* Footer */
.footer {
    border-top: 1px solid var(--black);
    padding: calc(var(--spacing-unit) * 4) 0;
}

.footer p {
    font-size: 0.875rem;
    color: var(--gray-dark);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-main-title {
        font-size: clamp(50px, 12vw, 140px);
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 8);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 8);
    }
}

@media (max-width: 768px) {
    .hero-lumina {
        margin-top: 45px;
        height: calc(100vh - 45px);
    }
    
    .hero-title-section {
        padding: 8px 20px 0;
    }
    
    .hero-main-title {
        font-size: 33.33vh;
    }
    
    .hero-sub-nav {
        flex-direction: column;
        gap: 6px;
        padding: 10px 20px;
    }
    
    .hero-content-section {
        padding: 12px 20px;
        gap: 8px;
    }
    
    .hero-symbol {
        width: 60px;
        height: 60px;
        top: 10%;
        right: 5%;
    }
    
    .hero-symbol span {
        font-size: 30px;
    }
    
    .nav-container {
        padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2);
    }
    
    .nav-right {
        gap: calc(var(--spacing-unit) * 3);
    }
    
    .section-header {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 2);
    }
    
    .nav-container {
        padding: calc(var(--spacing-unit) * 2);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .contact-link {
        font-size: 1.125rem;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes drawBorder {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Enhanced Hover Effects */
.nav-right a {
    position: relative;
    overflow: hidden;
}

.nav-right a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--black);
    transition: width 0.3s ease;
}

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

/* Project Card Animations */
.project-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.project-info {
    transform: translateZ(20px);
}

.project-title {
    position: relative;
    display: inline-block;
}

.project-card:hover .project-title {
    animation: slideInLeft 0.4s ease;
}

/* Social Links Hover Effect */
.social-links a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* About Section Stagger Animation */
.about-content p {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.about-content p:nth-child(2) {
    animation-delay: 0.2s;
}

.about-content p:nth-child(3) {
    animation-delay: 0.4s;
}

.detail-block {
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
}

.detail-block:nth-child(1) {
    animation-delay: 0.3s;
}

.detail-block:nth-child(2) {
    animation-delay: 0.5s;
}

/* Contact Section Animation */
.contact-info {
    animation: slideInLeft 0.8s ease;
}

.contact-details {
    animation: slideInRight 0.8s ease 0.2s backwards;
}

/* Loading State */
body:not(.loaded) * {
    animation-play-state: paused !important;
}

/* Smooth Transitions for All Interactive Elements */
button, a, .project-card, .project-image {
    will-change: transform;
}

/* Placeholder Image Animation */
.placeholder-image {
    position: relative;
    overflow: hidden;
}

.placeholder-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.project-card:hover .placeholder-image::after {
    left: 100%;
}

/* Section Header Animation */
.section-header h3 {
    position: relative;
    display: inline-block;
}

.section-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red);
    transition: width 0.6s ease;
}

.work-section.section-visible .section-header h3::after {
    width: 60px;
}

/* Menu Toggle Animation */
.menu-toggle {
    position: relative;
    overflow: hidden;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--gray-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.menu-toggle:hover::before {
    width: 100%;
    height: 100%;
}

/* Print Styles - Swiss designers love print! */
@media print {
    .nav,
    .footer {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .hero {
        margin-top: 0;
    }
    
    * {
        animation: none !important;
        transition: none !important;
    }
}
