/* Font Faces */
@font-face {
    font-family: 'Akira Expanded';
    src: url('../fonts/Akira_Expanded.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cityburn';
    src: url('../fonts/cityburn.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Preloader Section */
#preloader-section {
    background: #000;
    z-index: 50;
}

/* Background Images */
.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%);
    transform: scale(1);
    animation: cinematicZoom 30s ease-out forwards;
}

@keyframes cinematicZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

.bg-image.active {
    opacity: 1;
}

/* Text Stages - Base Styles */
.text-stage {
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    pointer-events: none;
}

.text-stage.active {
    opacity: 1;
}

/* Stage Positioning */
.stage-bottom-left {
    bottom: 140px;
    left: 60px;
    text-align: left;
}

.stage-top-right {
    top: 80px;
    right: 60px;
    text-align: right;
}

.stage-top-left {
    top: 80px;
    left: 60px;
    text-align: left;
}

.stage-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Heading Text - Cityburn Font */
.heading-text {
    font-family: 'Cityburn', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1.1;
    color: #000;
    text-transform: lowercase;
    margin-bottom: 0.2rem;
    letter-spacing: 0.02em;
}

/* Subheading Text - Cityburn Font with Yellow */
.subheading-text {
    font-family: 'Cityburn', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1.1;
    color: #FCD34D;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

/* SVG Strikethrough Wrapper */
.strikethrough-wrapper {
    position: relative;
    display: inline-block;
}

.strikethrough-text {
    position: relative;
    z-index: 1;
}

.strikethrough-svg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.strikethrough-svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.strikethrough-svg.animate path {
    animation: drawStroke 1.2s ease-out forwards;
}

.strikethrough-svg.animate path.stroke-1 {
    animation-delay: 0.1s;
}

.strikethrough-svg.animate path.stroke-2 {
    animation-delay: 0.25s;
}

.strikethrough-svg.animate path.stroke-3 {
    animation-delay: 0.4s;
}

.strikethrough-svg.animate path.stroke-4 {
    animation-delay: 0.55s;
}

.strikethrough-svg.diagonal {
    width: 110%;
    height: 120%;
    top: 45%;
    left: -5%;
}

.strikethrough-svg.multi {
    height: 150%;
}

/* Highlight Wrapper */
.highlight-wrapper {
    position: relative;
    display: inline-block;
}

.highlight-text {
    position: relative;
    z-index: 1;
}

.highlight-svg {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 0;
    pointer-events: none;
}

.highlight-svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.highlight-svg.animate path {
    animation: drawStroke 1s ease-out forwards;
}

.highlight-svg.animate path.stroke-1 {
    animation-delay: 0.1s;
}

.highlight-svg.animate path.stroke-2 {
    animation-delay: 0.25s;
}

.highlight-svg.animate path.stroke-3 {
    animation-delay: 0.4s;
}

.highlight-svg.animate path.stroke-4 {
    animation-delay: 0.55s;
}

@keyframes drawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.thcc-logo {
    max-width: 500px;
    width: 80vw;
    height: auto;
}

/* Loader Subtitle - Akira Expanded Font */
.loader-subtitle {
    font-family: 'Akira Expanded', sans-serif;
    font-size: clamp(0.5rem, 1.2vw, 0.75rem);
    letter-spacing: 0.15em;
    color: #fff;
    text-transform: uppercase;
}

/* Percentage Text - Akira Expanded Font */
.percentage-text {
    font-family: 'Akira Expanded', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.2em;
    color: #FCD34D;
    text-transform: uppercase;
    font-weight: bold;
}

/* Progress Bar Styling with Animated Gradient */
#progress-fill {
    box-shadow: 0 0 20px rgba(252, 211, 77, 0.6);
    position: relative;
    overflow: hidden;
}

.progress-gradient {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmerMove 2s infinite;
}

.progress-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(252, 211, 77, 0.3) 50%,
        transparent 100%
    );
    animation: shimmerMove 3s infinite;
    z-index: 1;
}

@keyframes shimmerMove {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Loading State */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(252, 211, 77, 0.3);
    border-top-color: #FCD34D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Logo Reveal Overlay */
#logo-reveal-overlay {
    transition: opacity 0.8s ease-out;
    z-index: 60;
}

.logo-spotlight {
    position: relative;
    margin-bottom: 80px;
    opacity: 0;
    transform: scale(0.5);
    filter: drop-shadow(0 0 80px rgba(252, 211, 77, 0.9));
    z-index: 2;
}

.reveal-logo {
    max-width: 700px;
    width: 85vw;
    height: auto;
}

.reveal-text {
    text-align: center;
    opacity: 0;
    transform: translateY(80px);
    z-index: 2;
}

.brace-heading {
    font-family: 'Akira Expanded', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.2em;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.entering-heading {
    font-family: 'Cityburn', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: lowercase;
    line-height: 1.2;
}

.entering-highlight {
    color: #FCD34D;
    font-weight: bold;
}

#logo-black-overlay {
    transition: opacity 2s ease-out;
}

/* Cosmic Portal Transition */
#cosmic-portal {
    background: #000;
    overflow: hidden;
    z-index: 70;
}

#cosmic-text-zoom {
    z-index: 2;
}

.cosmic-text-container {
    transform-style: preserve-3d;
    transform: translateZ(0) scale(1);
}

.cosmic-text {
    font-family: 'Cityburn', sans-serif;
    font-size: clamp(4rem, 15vw, 12rem);
    color: #FCD34D;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    transform: translateZ(0) scale(1);
    text-shadow: 0 0 40px rgba(252, 211, 77, 0.8);
}

.cosmic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: opacity 2s ease-out;
}

/* Main Content Section */
#main-content {
    transition: opacity 2s ease-out;
    z-index: 40;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .loader-subtitle {
        font-size: 0.4rem;
        letter-spacing: 0.1em;
    }
    
    .stage-bottom-left {
        bottom: 120px;
        left: 20px;
    }
    
    .stage-top-right {
        top: 60px;
        right: 20px;
    }
    
    .stage-top-left {
        top: 60px;
        left: 20px;
    }
    
    .heading-text,
    .subheading-text {
        font-size: clamp(2rem, 8vw, 5rem);
    }
}
