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

html, body {
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

/* Hero section - full viewport */
.hero {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(
        to bottom,
        #1a2235 0%,
        #2a3550 20%,
        #3d4a65 40%,
        #4a5775 60%,
        #3d4a65 80%,
        #2a3550 100%
    );
    overflow: hidden;
}

/* Background image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('aurora-witch.png');
    background-size: cover;
    background-position: center center;
    opacity: 0.85;
    z-index: 0;
}

/* Fog overlay effect */
.fog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 34, 53, 0.3) 0%,
        rgba(42, 53, 80, 0.15) 30%,
        rgba(61, 74, 101, 0.2) 50%,
        rgba(42, 53, 80, 0.5) 80%,
        rgba(26, 34, 53, 0.7) 100%
    );
    z-index: 1;
}

/* Additional fog layer for depth */
.fog-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 60%, rgba(150, 160, 180, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 50%, rgba(150, 160, 180, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 100% 30% at 50% 80%, rgba(100, 110, 130, 0.2) 0%, transparent 50%);
    z-index: 2;
    animation: fog-drift 20s ease-in-out infinite;
}

@keyframes fog-drift {
    0%, 100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(30px) scale(1.02);
        opacity: 0.8;
    }
}

/* Content wrapper */
.content {
    position: relative;
    z-index: 10;
    padding: 30px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 10px;
}

.title-mystery {
    font-family: 'Creepster', cursive;
    font-size: clamp(80px, 18vw, 200px);
    color: #e8e4d9;
    text-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(232, 228, 217, 0.2),
        0 0 100px rgba(232, 228, 217, 0.1);
    letter-spacing: 0.02em;
    line-height: 0.85;
    margin-bottom: 0;
}

.title-location {
    font-family: 'Cinzel', serif;
    font-size: clamp(20px, 4vw, 42px);
    color: #c9a227;
    letter-spacing: 0.4em;
    margin-top: -5px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

/* Main content layout */
.main-content {
    display: flex;
    flex: 1;
    gap: 40px;
    align-items: flex-end;
    padding-bottom: 40px;
}

/* Left section - badges and phone */
.left-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
    z-index: 15;
}

/* Store badges */
.store-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-badge {
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.store-badge:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.store-badge svg {
    display: block;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Phone mockup */
.phone-mockup {
    width: 200px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.phone-frame {
    background: linear-gradient(145deg, #2a2a40 0%, #1a1a2e 100%);
    border-radius: 28px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-screen {
    background: linear-gradient(180deg, #1e1e32 0%, #14142a 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 380px;
}

.app-header {
    background: linear-gradient(180deg, #a88520 0%, #c9a227 30%, #d4af37 50%, #c9a227 70%, #a88520 100%);
    padding: 18px 12px 14px;
    text-align: center;
}

.app-title {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    display: block;
    letter-spacing: 0.05em;
}

.app-subtitle {
    font-size: 7px;
    color: rgba(26, 26, 46, 0.8);
    margin-top: 6px;
    line-height: 1.4;
}

.app-content {
    padding: 12px;
}

.app-section {
    margin-bottom: 12px;
}

.section-title {
    font-size: 8px;
    color: #666;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.suspect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.suspect {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #3a3a55 0%, #2a2a40 100%);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 4px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 6px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item.active,
.nav-item:hover {
    color: #c9a227;
}

.nav-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
    opacity: 1;
}

/* Right section - title and description */
.right-section {
    flex: 1;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.game-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(28px, 5vw, 52px);
    color: #c9a227;
    text-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(201, 162, 39, 0.25);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-weight: 700;
}

.testing-date {
    font-family: 'Cinzel', serif;
    font-size: clamp(16px, 2.5vw, 26px);
    color: #a02020;
    letter-spacing: 0.2em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.description {
    font-size: clamp(13px, 1.8vw, 17px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 25px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.website-link {
    font-family: 'Cinzel', serif;
    font-size: clamp(15px, 2.2vw, 22px);
    color: #c9a227;
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 600;
}

.website-link:hover {
    color: #e8d078;
    text-shadow: 0 0 25px rgba(201, 162, 39, 0.6);
    transform: scale(1.02);
}


/* Responsive design */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        align-items: center;
        padding-bottom: 60px;
    }

    .left-section {
        flex-direction: row;
        align-items: flex-end;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 20px;
    }

    .title-mystery {
        font-size: clamp(50px, 18vw, 100px);
    }

    .title-location {
        font-size: clamp(16px, 4vw, 28px);
        letter-spacing: 0.3em;
    }

    .left-section {
        flex-direction: column;
        align-items: center;
    }

    .store-badges {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .phone-mockup {
        width: 170px;
    }

    .phone-screen {
        height: 320px;
    }

    .main-content {
        padding-bottom: 60px;
    }

    .description {
        font-size: 14px;
        line-height: 1.65;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 15px;
    }

    .store-badges {
        flex-direction: column;
        align-items: center;
    }

    .store-badge svg {
        width: 120px;
        height: auto;
    }

    .phone-mockup {
        width: 150px;
    }

    .phone-screen {
        height: 285px;
    }

    .app-title {
        font-size: 11px;
    }

    .game-title {
        font-size: clamp(22px, 6vw, 32px);
    }

    .testing-date {
        font-size: clamp(14px, 4vw, 20px);
    }

    .description {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(201, 162, 39, 0.4);
    color: #fff;
}
