@font-face {
    font-family: 'Cartographer';
    src: url('cartographer.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    padding: 20px;
    color: #ffffff;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bg-slide {
    position: fixed;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.bg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: -1;
}

/* Music background - same as music.html page */
.bg-music {
    left: -50%;
    animation: slideInFromLeft 1.5s ease-out forwards;
}

.bg-music img {
    opacity: 1;
    filter: none;
    transform: none;
}

.bg-music::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.5);
    z-index: 0;
    pointer-events: none;
}

/* Selfie background - same as selfie.html page */
.bg-selfie {
    left: 100%;
    animation: slideInFromRight 1.5s ease-out forwards;
}

.bg-selfie img {
    object-position: center;
    opacity: 0.65;
    filter: blur(1.5px);
    transform: scale(1.1);
    transition: opacity 0.3s ease;
}

.bg-selfie::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.75) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0.75) 100%
    );
    z-index: 0;
    backdrop-filter: blur(1px);
    pointer-events: none;
}

@keyframes slideInFromLeft {
    from {
        left: -50%;
    }
    to {
        left: 0;
    }
}

@keyframes slideInFromRight {
    from {
        left: 100%;
    }
    to {
        left: 50%;
    }
}

/* Page transition animations */
@keyframes expandMusicToFull {
    from {
        left: 0;
        width: 50%;
    }
    to {
        left: 0;
        width: 100%;
    }
}

@keyframes expandSelfieToFull {
    from {
        left: 50%;
        width: 50%;
    }
    to {
        left: 0;
        width: 100%;
    }
}

@keyframes slideSelfieOut {
    from {
        left: 50%;
        width: 50%;
        opacity: 0.7;
    }
    to {
        left: 100%;
        width: 50%;
        opacity: 0;
    }
}

@keyframes slideMusicOut {
    from {
        left: 0;
        width: 50%;
        opacity: 0.7;
    }
    to {
        left: -50%;
        width: 50%;
        opacity: 0;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Overlay removed - each background has its own overlay */

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(17, 17, 17, 0.4);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(42, 42, 42, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    transition: opacity 0.6s ease-out;
}

header {
    background: rgba(10, 10, 10, 0.4);
    color: #ffffff;
    padding: 40px 40px;
    text-align: center;
    border-bottom: 1px solid rgba(26, 26, 26, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

header h1 {
    color: #ff6b35;
    font-size: 1.8em;
    font-weight: 600;
    margin: 20px 0 0 0;
    padding: 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.brand-title-3d {
    font-size: 6em;
    font-weight: normal;
    font-family: 'Cartographer', sans-serif;
    color: #cc5528;
    text-align: center;
    padding: 0;
    letter-spacing: 8px;
    text-transform: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    gap: 8px;
}

.title-letter {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.title-letter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ff8c42 20%, 
        #ffaa55 50%, 
        #ff8c42 80%, 
        transparent 100%);
    transform: translateY(-50%);
    box-shadow: 
        0 0 12px rgba(255, 140, 66, 0.9),
        0 0 24px rgba(255, 140, 66, 0.7),
        0 0 36px rgba(255, 140, 66, 0.5);
    z-index: 1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.title-letter:hover::before {
    height: 6px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ffaa55 15%, 
        #ffcc77 35%, 
        #ffdd99 50%, 
        #ffcc77 65%, 
        #ffaa55 85%, 
        transparent 100%);
    box-shadow: 
        0 0 25px rgba(255, 170, 85, 1),
        0 0 50px rgba(255, 170, 85, 1),
        0 0 75px rgba(255, 170, 85, 0.9),
        0 0 100px rgba(255, 170, 85, 0.7),
        0 0 125px rgba(255, 170, 85, 0.5);
    animation: brighten 1.2s ease-in-out infinite;
}

@keyframes brighten {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 170, 85, 1),
            0 0 40px rgba(255, 170, 85, 0.9),
            0 0 60px rgba(255, 170, 85, 0.7),
            0 0 80px rgba(255, 170, 85, 0.5);
        filter: brightness(1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 200, 100, 1),
            0 0 60px rgba(255, 200, 100, 1),
            0 0 90px rgba(255, 200, 100, 0.9),
            0 0 120px rgba(255, 200, 100, 0.7);
        filter: brightness(1.3);
    }
}

main {
    padding: 60px 40px;
}

.main-content {
    text-align: center;
}

.main-content h2 {
    color: #ff6b35;
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 50px;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 53, 0.8);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6), 0 0 40px rgba(255, 107, 53, 0.4), inset 0 0 20px rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.05);
}

.button-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.main-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 53, 0.5);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4), 0 0 30px rgba(255, 107, 53, 0.2), inset 0 0 20px rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.4);
    min-height: 280px;
}

.main-btn:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 53, 0.8);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6), 0 0 50px rgba(255, 107, 53, 0.4), inset 0 0 30px rgba(255, 107, 53, 0.2);
}

.music-btn:hover {
    background: rgba(255, 107, 53, 0.1);
}

.selfie-btn:hover {
    background: rgba(107, 53, 255, 0.1);
}

.btn-text {
    text-align: center;
}

.btn-text h3 {
    color: #ff6b35;
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.btn-text p {
    color: #d0d0d0;
    font-size: 1.1em;
    line-height: 1.6;
}

footer {
    background: rgba(10, 10, 10, 0.4);
    color: #d0d0d0;
    padding: 30px;
    text-align: center;
    border-top: 1px solid rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(10px);
}

footer p {
    margin-bottom: 10px;
    opacity: 0.9;
    text-align: center;
}

footer p:last-child {
    margin-bottom: 0;
    font-size: 0.9em;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bg-slide {
        width: 50%;
    }
    
    .bg-music {
        left: -50%;
    }
    
    .bg-selfie {
        left: 100%;
    }
    
    .bg-selfie img {
        object-position: center;
    }
    
    @keyframes slideInFromLeft {
        from {
            left: -50%;
        }
        to {
            left: 0;
        }
    }
    
    @keyframes slideInFromRight {
        from {
            left: 100%;
        }
        to {
            left: 50%;
        }
    }
    
    body {
        padding: 10px;
    }

    header {
        padding: 30px 20px;
        min-height: 150px;
    }

    header h1 {
        font-size: 1.3em;
    }

    .brand-title-3d {
        font-size: clamp(2rem, 8vw, 4rem);
        letter-spacing: clamp(2px, 1.5vw, 8px);
        white-space: normal;
        word-break: break-word;
        line-height: 1.2;
        padding: 0 10px;
    }

    main {
        padding: 40px 20px;
    }

    .main-content h2 {
        font-size: 1.5em;
        padding: 15px;
        margin-bottom: 30px;
    }

    .button-container {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
    }

    .main-btn {
        padding: 30px 20px;
        min-height: 250px;
    }

    .btn-text h3 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .btn-text p {
        font-size: 1em;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8c42;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #ff6b35 #1a1a1a;
}