﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== LOADING SCREEN ==================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    background: #f5f5f5;
    color: #1a1a1a;
    transition: opacity 0.8s ease;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .loading-screen {
        background: #1a1a1a;
        color: #f5f5f5;
    }
}

.loading-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 4px;
    white-space: nowrap;
}

.loading-text .letter {
    display: inline-block;
    opacity: 0;
    animation: fadeInLetter 0.3s forwards;
}

@keyframes fadeInLetter {
    to {
        opacity: 1;
    }
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

body.loading {
    overflow: hidden;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .loading-text {
        font-size: 32px;
        letter-spacing: 3px;
    }
}

@media (max-width: 480px) {
    .loading-text {
        font-size: 24px;
        letter-spacing: 2px;
    }
}
/* ==================== END LOADING SCREEN ==================== */

html, body {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #c9c5bc 0%, #d4d0c8 50%, #bfbbb3 100%);
    min-height: 100vh;
    color: #333;
    transition: background 0.8s ease;
    position: relative;
}

/* Ambient depth gradient overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    position: relative;
}

nav {
    font-size: 18px;
    letter-spacing: 2px;
}

nav a {
    color: #000;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s;
}

nav a:hover {
    color: #333;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* Title */
.title-container {
    position: relative;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subtitle {
    font-size: 17px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #000;
    margin-bottom: 15px;
    text-align: center;
    opacity: 0.8;
}

.main-title {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 5px;
    background: #000;
    color: #fff;
    padding: 11px 32px;
    display: inline-block;
    transition: opacity 0.5s ease-in-out;
    min-width: 270px;
    text-align: center;
    position: relative;
    z-index: 20;
    margin-bottom: -37px;
    font-family: 'Cocogoose Pro Thin', 'Cocogoose Pro', 'Helvetica Neue', Arial, sans-serif;
}

.corner-bracket {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid #000;
}

.corner-bracket.top-left {
    top: -14px;
    left: 36px;
    border-right: none;
    border-bottom: none;
}

.corner-bracket.top-right {
    top: -14px;
    right: 36px;
    border-left: none;
    border-bottom: none;
}

.corner-bracket.bottom-left {
    bottom: -14px;
    left: 36px;
    border-right: none;
    border-top: none;
}

.corner-bracket.bottom-right {
    bottom: -14px;
    right: 36px;
    border-left: none;
    border-top: none;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 80px 0;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel {
    position: relative;
    width: 100%;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.carousel-item {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.carousel-item img {
    width: 360px;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hide items beyond -1 and 1 positions */
.carousel-item[data-pos="-2"],
.carousel-item[data-pos="2"],
.carousel-item:not([data-pos="-1"]):not([data-pos="0"]):not([data-pos="1"]) {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.5);
}

/* Left position */
.carousel-item[data-pos="-1"] {
    opacity: 0.7;
    transform: translate(calc(-50% - 425px), -50%) scale(0.85);
    z-index: 5;
}

.carousel-item[data-pos="-1"] img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Center position */
.carousel-item[data-pos="0"] {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 10;
    cursor: pointer;
}

.carousel-item[data-pos="0"] img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.carousel-item[data-pos="0"]:hover {
    transform: translate(-50%, -50%) scale(1.18);
}

/* Right position */
.carousel-item[data-pos="1"] {
    opacity: 0.7;
    transform: translate(calc(-50% + 425px), -50%) scale(0.85);
    z-index: 5;
}

.carousel-item[data-pos="1"] img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Carousel Buttons */
.carousel-btn {
    background: transparent;
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #000;
    z-index: 100;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-btn.prev {
    left: -80px;
}

.carousel-btn.next {
    right: -80px;
}

.carousel-btn svg {
    color: #000;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.2);
}

.carousel-btn:hover svg {
    color: #333;
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.9);
}

/* Bio */
.bio {
    max-width: 540px;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #000;
    padding: 0 20px;
}


/* Responsive */

/* iPad & Tablets - Responsive */
@media (min-width: 768px) and (max-width: 1366px) {
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
    }
    
    .container {
        min-height: 100vh !important;
        display: flex;
        flex-direction: column;
        padding: 10px;
    }
    
    header {
        flex-shrink: 0;
    }
    
    main {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 1024px) {
    .carousel-item img {
        width: 280px;
        height: 280px;
    }
    
    .carousel {
        height: 400px;
    }
    
    .carousel-item[data-pos="-1"] {
        transform: translate(calc(-50% - 340px), -50%) scale(0.85);
    }
    
    .carousel-item[data-pos="1"] {
        transform: translate(calc(-50% + 340px), -50%) scale(0.85);
    }
}

/* Large phones (iPhone 12/13 Pro Max, etc.) */
@media (max-width: 900px) and (min-width: 769px) {
    body::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.12) 40%, rgba(255, 255, 255, 0.08) 100%);
    }
    
    .carousel-item img {
        width: 300px;
        height: 300px;
    }
    
    .carousel {
        height: 450px;
    }
    
    .carousel-item[data-pos="-1"] {
        transform: translate(calc(-50% - 360px), -50%) scale(0.85);
    }
    
    .carousel-item[data-pos="1"] {
        transform: translate(calc(-50% + 360px), -50%) scale(0.85);
    }
    
    .carousel-btn.prev {
        left: -40px;
    }
    
    .carousel-btn.next {
        right: -40px;
    }
    
    .corner-bracket {
        display: none;
    }
}

@media (max-width: 768px) {
    body::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(255, 255, 255, 0.08) 100%);
    }
    
    .container {
        max-width: 100%;
    }
    
    .subtitle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .carousel {
        height: 280px;
    }
    
    .carousel-item img {
        width: 160px;
        height: 160px;
    }
    
    .carousel-item[data-pos="-1"] {
        transform: translate(calc(-50% - 200px), -50%) scale(0.85);
    }
    
    .carousel-item[data-pos="1"] {
        transform: translate(calc(-50% + 200px), -50%) scale(0.85);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .carousel-btn.prev {
        left: 0px;
    }
    
    .carousel-btn.next {
        right: 0px;
    }
    
    .bio {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .corner-bracket {
        display: none;
    }
    
    header {
        padding: 20px;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    .container {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 8px;
        max-width: 100%;
        width: 100%;
    }
    
    header {
        padding: 12px 10px;
        flex-shrink: 0;
    }
    
    nav {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    main {
        flex: 1;
        padding: 10px 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    body::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.08) 40%, rgba(255, 255, 255, 0.05) 100%);
    }
    
    .title-container {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .subtitle {
        font-size: 11px;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .main-title {
        font-size: 14px;
        padding: 6px 18px;
        letter-spacing: 2.5px;
        margin-bottom: -20px;
        min-width: 180px;
    }
    
    .carousel-container {
        padding: 35px 0 10px;
        margin-bottom: 8px;
        flex-shrink: 0;
    }
    
    .carousel {
        height: 200px;
    }
    
    .carousel-item[data-pos="-1"] {
        transform: translate(calc(-50% - 110px), -50%) scale(0.6);
    }
    
    .carousel-item[data-pos="0"] {
        transform: translate(-50%, -50%) scale(0.88);
    }
    
    .carousel-item[data-pos="1"] {
        transform: translate(calc(-50% + 110px), -50%) scale(0.6);
    }
    
    .carousel-item img {
        width: 140px;
        height: 140px;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
    }
    
    .carousel-btn.prev {
        left: -5px;
    }
    
    .carousel-btn.next {
        right: -5px;
    }
    
    .carousel-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .bio {
        font-size: 9px;
        max-width: 85%;
        padding: 0 10px;
        line-height: 1.4;
        margin-top: 5px;
        flex-shrink: 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .corner-bracket {
        display: none;
    }
}

/* Mobile Landscape (phones only, not tablets) */
@media (max-width: 767px) and (orientation: landscape) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    .container {
        padding: 5px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    header {
        padding: 8px 15px;
        flex-shrink: 0;
    }
    
    nav {
        font-size: 12px;
        letter-spacing: 1.5px;
    }
    
    main {
        padding: 5px 10px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .title-container {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .subtitle {
        font-size: 9px;
        margin-bottom: 5px;
        letter-spacing: 0.5px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .main-title {
        font-size: 12px;
        padding: 5px 16px;
        letter-spacing: 2px;
        margin-bottom: -16px;
        min-width: 150px;
    }
    
    .carousel-container {
        padding: 28px 0 8px;
        margin-bottom: 5px;
        flex-shrink: 0;
    }
    
    .carousel {
        height: 160px;
    }
    
    .carousel-item img {
        width: 120px;
        height: 120px;
    }
    
    .carousel-item[data-pos="-1"] {
        transform: translate(calc(-50% - 160px), -50%) scale(0.7);
    }
    
    .carousel-item[data-pos="0"] {
        transform: translate(-50%, -50%) scale(0.9);
    }
    
    .carousel-item[data-pos="1"] {
        transform: translate(calc(-50% + 160px), -50%) scale(0.7);
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .bio {
        font-size: 8px;
        max-width: 70%;
        line-height: 1.3;
        padding: 0 10px;
        margin-top: 4px;
        flex-shrink: 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .corner-bracket {
        display: none;
    }
}

/* iPad Portrait - Responsive */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
    }
    
    .container {
        min-height: 100vh !important;
        display: flex;
        flex-direction: column;
        padding: 15px;
    }
    
    header {
        flex-shrink: 0;
        padding: 15px 20px;
    }
    
    nav {
        font-size: 16px;
    }
    
    main {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 15px 10px;
    }
    
    .title-container {
        flex-shrink: 0;
    }
    
    .subtitle {
        font-size: 15px;
        margin-bottom: 10px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .main-title {
        font-size: 20px;
        padding: 10px 28px;
        margin-bottom: -28px;
    }
    
    .carousel-container {
        padding: 55px 0 20px;
        margin-bottom: 15px;
        flex-shrink: 0;
    }
    
    .carousel {
        height: 320px;
    }
    
    .carousel-item img {
        width: 220px;
        height: 220px;
    }
    
    .carousel-item[data-pos="-1"] {
        transform: translate(calc(-50% - 280px), -50%) scale(0.85);
    }
    
    .carousel-item[data-pos="0"] {
        transform: translate(-50%, -50%) scale(1.05);
    }
    
    .carousel-item[data-pos="1"] {
        transform: translate(calc(-50% + 280px), -50%) scale(0.85);
    }
    
    .carousel-btn {
        width: 42px;
        height: 42px;
    }
    
    .carousel-btn.prev {
        left: -15px;
    }
    
    .carousel-btn.next {
        right: -15px;
    }
    
    .carousel-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .bio {
        font-size: 12px;
        max-width: 75%;
        line-height: 1.5;
        padding: 0 15px;
        flex-shrink: 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .corner-bracket {
        display: none;
    }
}

/* iPad Landscape - Responsive */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
    }
    
    .container {
        min-height: 100vh !important;
        display: flex;
        flex-direction: column;
        padding: 8px;
    }
    
    header {
        padding: 10px 20px;
        flex-shrink: 0;
    }
    
    nav {
        font-size: 15px;
    }
    
    main {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }
    
    .title-container {
        flex-shrink: 0;
    }
    
    .subtitle {
        font-size: 13px;
        margin-bottom: 8px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .main-title {
        font-size: 18px;
        padding: 8px 26px;
        margin-bottom: -24px;
    }
    
    .carousel-container {
        padding: 45px 0 12px;
        margin-bottom: 10px;
        flex-shrink: 0;
    }
    
    .carousel {
        height: 260px;
    }
    
    .carousel-item img {
        width: 180px;
        height: 180px;
    }
    
    .carousel-item[data-pos="-1"] {
        transform: translate(calc(-50% - 240px), -50%) scale(0.8);
    }
    
    .carousel-item[data-pos="0"] {
        transform: translate(-50%, -50%) scale(1.0);
    }
    
    .carousel-item[data-pos="1"] {
        transform: translate(calc(-50% + 240px), -50%) scale(0.8);
    }
    
    .carousel-btn {
        width: 38px;
        height: 38px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .carousel-btn svg {
        width: 26px;
        height: 26px;
    }
    
    .bio {
        font-size: 11px;
        max-width: 70%;
        line-height: 1.4;
        padding: 0 10px;
        flex-shrink: 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .corner-bracket {
        display: none;
    }
}

/* Desktop Landscape Mode Optimization (not iPads) */
@media (orientation: landscape) and (max-height: 600px) and (min-width: 1367px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    .container {
        padding: 8px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    header {
        padding: 10px 20px;
        flex-shrink: 0;
    }
    
    nav {
        font-size: 14px;
        letter-spacing: 1.5px;
    }
    
    main {
        padding: 10px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .title-container {
        margin-bottom: 0;
    }
    
    .subtitle {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .main-title {
        font-size: 16px;
        padding: 8px 24px;
        letter-spacing: 3px;
        margin-bottom: -22px;
        min-width: 200px;
    }
    
    .carousel-container {
        padding: 40px 0 15px;
        margin-bottom: 10px;
    }
    
    .carousel {
        height: 240px;
    }
    
    .carousel-item img {
        width: 160px;
        height: 160px;
    }
    
    .carousel-item[data-pos="-1"] {
        transform: translate(calc(-50% - 200px), -50%) scale(0.8);
    }
    
    .carousel-item[data-pos="0"] {
        transform: translate(-50%, -50%) scale(0.95);
    }
    
    .carousel-item[data-pos="1"] {
        transform: translate(calc(-50% + 200px), -50%) scale(0.8);
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .carousel-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .bio {
        font-size: 11px;
        max-width: 65%;
        line-height: 1.4;
        padding: 0 10px;
        margin-top: 5px;
    }
    
    .corner-bracket {
        display: none;
    }
}