/* Black & White Theme */
:root {
    /* Surface colors */
    --md-surface-00dp: #000000;
    --md-surface-01dp: #0a0a0a;
    --md-surface-02dp: #121212;
    --md-surface-03dp: #1a1a1a;
    --md-surface-04dp: #1f1f1f;
    --md-surface-06dp: #242424;
    --md-surface-08dp: #2a2a2a;
    --md-surface-12dp: #303030;
    --md-surface-16dp: #383838;
    --md-surface-24dp: #404040;
    
    /* Primary colors - now grayscale */
    --md-primary: #ffffff;
    --md-primary-variant: #cccccc;
    --md-on-primary: #000000;
    
    /* Secondary colors - now grayscale */
    --md-secondary: #ffffff;
    --md-secondary-variant: #cccccc;
    --md-on-secondary: #000000;
    
    /* Background and surface */
    --md-background: #000000;
    --md-surface: #000000;
    --md-error: #ffffff;
    
    /* Text colors - high emphasis: 87%, medium: 60%, disabled: 38% */
    --md-on-surface-high: rgba(255, 255, 255, 0.87);
    --md-on-surface-medium: rgba(255, 255, 255, 0.60);
    --md-on-surface-disabled: rgba(255, 255, 255, 0.38);
    --md-on-background: rgba(255, 255, 255, 0.87);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-xxxl: 64px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    --font-size-xxxl: 48px;
    
    /* Layout */
    --header-height: 45px;
    --max-text-width: 720px;
    --max-image-width: 1200px;
    --content-padding: var(--spacing-lg);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--md-background);
    color: var(--md-on-surface-high);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-xxxl); }
h2 { font-size: var(--font-size-xxl); }
h3 { font-size: var(--font-size-xl); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--md-on-surface-medium);
}

a {
    color: var(--md-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--md-on-surface-medium);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: #000000;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75px;
    height: 100%;
    background: radial-gradient(circle at center top, transparent 0%, transparent 38px, #000000 38px);
    z-index: 1;
}

.logo {
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 50%;
    z-index: 2;
}

.logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(0, 0, 0, 0.8);
}

.logo:hover .logo-circle {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.25);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 1px;
}

/* Main content */
.main-content {
    margin-top: var(--header-height);
}

/* Hero section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.6s ease-in-out;
    opacity: 1;
}

.hero-image.fade-out {
    opacity: 0;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    cursor: pointer;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-scroll-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    transform: rotate(-45deg);
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: rotate(-45deg) translateY(0);
        opacity: 1;
    }
    50% {
        transform: rotate(-45deg) translateY(8px);
        opacity: 0.7;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
    z-index: 10;
    opacity: 0;
    backdrop-filter: blur(4px);
}

.hero:hover .hero-nav {
    opacity: 0.6;
}

.hero-nav:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.05);
}

.hero-nav-prev {
    left: 20px;
}

.hero-nav-next {
    right: 20px;
}

.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero-indicator.active {
    background-color: #ffffff;
    width: 24px;
    border-radius: 4px;
}

/* Intro section */
.intro-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xxxl) var(--content-padding);
    text-align: center;
}

.intro-section h2 {
    font-size: var(--font-size-xxl);
    margin-bottom: var(--spacing-lg);
}

.intro-section p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--md-on-surface-medium);
}

/* Travel grid */
.travel-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
}

.travel-card {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--md-surface-04dp);
    flex: 0 0 65%;
}

.travel-card:nth-child(even) {
    flex: 0 0 35%;
}

.travel-card:nth-child(4n+3) {
    flex: 0 0 35%;
}

.travel-card:nth-child(4n+4) {
    flex: 0 0 65%;
}

.travel-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.travel-card:hover .travel-card-image {
    transform: scale(1.05);
}

.travel-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-lg);
}

.travel-card:hover .travel-card-overlay {
    opacity: 1;
}

.travel-card-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: white;
    margin: 0;
}

/* Image with fade frame */
.content-image-wrapper {
    position: relative;
    margin: var(--spacing-xl) auto;
    max-width: var(--max-image-width);
    padding: 0 var(--content-padding);
}

.content-image-frame {
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.content-image-frame:hover {
    transform: scale(1.01);
}

.content-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
    object-fit: contain;
}

/* Content blocks */
.content-blocks {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.content-text-block {
    max-width: var(--max-text-width);
    margin: var(--spacing-xl) auto;
    padding: 0 var(--content-padding);
}

.content-text-block p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

/* Fullscreen image viewer */
.fullscreen-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fullscreen-viewer.active {
    display: flex;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-fullscreen {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    font-size: 48px;
    color: white;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.close-fullscreen:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    :root {
        --header-height: 50px;
        --font-size-xxxl: 32px;
        --font-size-xxl: 24px;
        --font-size-xl: 20px;
        --content-padding: var(--spacing-md);
    }
    
    .header::before {
        width: 80px;
        background: radial-gradient(circle at center top, transparent 0%, transparent 40px, #000000 40px);
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .hero-scroll-indicator {
        bottom: 40px;
    }
    
    .hero-scroll-text {
        font-size: 12px;
        letter-spacing: 1.5px;
    }
    
    .hero-scroll-arrow {
        width: 20px;
        height: 20px;
    }
    
    .hero-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
        opacity: 0.5;
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .hero-nav-prev {
        left: 10px;
    }
    
    .hero-nav-next {
        right: 10px;
    }
    
    .hero-indicators {
        bottom: 10px;
        gap: 6px;
    }
    
    .hero-indicator {
        width: 6px;
        height: 6px;
    }
    
    .hero-indicator.active {
        width: 18px;
    }
    
    .hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .intro-section {
        padding: var(--spacing-xxl) var(--content-padding);
    }
    
    .travel-grid {
        flex-direction: column;
    }
    
    .travel-card,
    .travel-card:nth-child(even),
    .travel-card:nth-child(4n+3),
    .travel-card:nth-child(4n+4) {
        flex: 0 0 100%;
        height: 50vh;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    :root {
        --content-padding: var(--spacing-sm);
    }
    
    .header::before {
        width: 70px;
        background: radial-gradient(circle at center top, transparent 0%, transparent 35px, #000000 35px);
    }
    
    .logo-circle {
        width: 50px;
        height: 50px;
    }
    
    .logo-text {
        font-size: 20px;
    }
}

/* Footer styles */
.footer {
    background-color: var(--md-surface-02dp);
    border-top: 1px solid var(--md-surface-08dp);
    padding: var(--spacing-xl) var(--content-padding);
    margin-top: var(--spacing-xxxl);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--md-on-surface-medium);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--md-on-surface-high);
}

.footer-separator {
    color: var(--md-on-surface-disabled);
    font-size: var(--font-size-sm);
}

.footer-copyright {
    color: var(--md-on-surface-disabled);
    font-size: var(--font-size-sm);
}

/* Legal pages styles */
.legal-header {
    background-color: var(--md-surface-02dp);
    padding: var(--spacing-xxxl) var(--content-padding) var(--spacing-xl);
    text-align: center;
    border-bottom: 1px solid var(--md-surface-08dp);
}

.legal-header-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 var(--spacing-md);
    color: var(--md-on-surface-high);
}

.legal-subtitle {
    font-size: var(--font-size-lg);
    color: var(--md-on-surface-medium);
    margin: 0;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xxl) var(--content-padding);
}

.legal-card {
    background-color: var(--md-surface-02dp);
    border-radius: 8px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--md-surface-08dp);
}

.legal-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 var(--spacing-md);
    color: var(--md-on-surface-high);
}

.legal-card p {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--md-on-surface-medium);
    margin: 0 0 var(--spacing-md);
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card strong {
    color: var(--md-on-surface-high);
}

@media (max-width: 768px) {
    .legal-header-content h1 {
        font-size: 36px;
    }
    
    .legal-subtitle {
        font-size: var(--font-size-base);
    }
    
    .legal-container {
        padding: var(--spacing-lg) var(--content-padding);
    }
    
    .legal-card {
        padding: var(--spacing-md);
    }
    
    .legal-card h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: var(--spacing-lg) var(--content-padding);
    }
    
    .footer-links {
        gap: var(--spacing-sm);
    }
    
    .footer-separator {
        display: none;
    }
    
    .legal-header {
        padding: var(--spacing-xl) var(--content-padding) var(--spacing-lg);
    }
    
    .legal-header-content h1 {
        font-size: 28px;
    }
}
