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

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* Background and Overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: -1;
}

.main-page .background-overlay {
    background: url('images/DEAD WATCH OUTCORE BACKGROUND_edited.jpg') center/cover no-repeat fixed;
}

.deadwatch-page .background-overlay {
    background: url('images/Dead Watch screenshots/1.png') center/cover no-repeat fixed;
    opacity: 0.15;
}

.deadwatch-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 8, 6, 0.95) 0%, rgba(20, 15, 12, 0.95) 100%);
    z-index: -1;
}

.outcore-page .background-overlay {
    background: url('images/16x9 shattered background no ui.png') center/cover no-repeat fixed;
    opacity: 0.15;
}

.outcore-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 10, 15, 0.95) 0%, rgba(10, 15, 20, 0.95) 100%);
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Page Styles */
.main-page .container {
    padding-top: 0;
    align-items: flex-start;
    padding-top: 25vh;
}

.content {
    text-align: center;
    width: 100%;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 80px;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #00d4ff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.5));
    }
}

/* Buttons Container */
.buttons-container {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-button {
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.button-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.game-button img {
    width: 350px;
    height: 350px;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.game-button:hover img {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.button-text {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
}

.game-button:hover .button-text {
    color: #ff00ff;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 15, 30, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 100;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #00d4ff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Game Page Styles */
.game-page {
    padding-top: 60px;
}

.game-content {
    width: 100%;
}

.game-header {
    text-align: center;
    margin-bottom: 60px;
}

.game-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.deadwatch-page .game-header h1 {
    color: #d4a574;
}

.tagline {
    font-size: 1.3rem;
    color: #b0b0b0;
    font-style: italic;
    letter-spacing: 1px;
}

/* Game Main Content */
.game-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: center;
}

.game-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
}

.game-image {
    text-align: center;
}

.game-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.game-image img:hover {
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.8);
}

.game-image iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: none;
}

/* Features Section */
.features {
    background: rgba(30, 30, 60, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 60px;
    backdrop-filter: blur(10px);
}

.deadwatch-page .features {
    background: rgba(30, 25, 20, 0.5);
    border: 2px solid rgba(212, 165, 116, 0.3);
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00d4ff;
}

.deadwatch-page .features h2 {
    color: #d4a574;
}

.features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features li {
    padding-left: 30px;
    position: relative;
    line-height: 1.8;
    color: #d0d0d0;
    font-size: 1rem;
}

.features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

.deadwatch-page .features li::before {
    color: #d4a574;
}

.features strong {
    color: #00d4ff;
}

.deadwatch-page .features strong {
    color: #d4a574;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.steam-widget {
    margin: 60px auto;
    max-width: 646px;
    text-align: center;
}

.steam-widget iframe {
    border: none;
    width: 100%;
    max-width: 646px;
    height: 190px;
}

.social-link {
    display: inline-block;
    padding: 12px 20px;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    text-decoration: none;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.deadwatch-page .social-link {
    background: rgba(212, 165, 116, 0.1);
    color: #d4a574;
    border: 2px solid rgba(212, 165, 116, 0.3);
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.deadwatch-page .social-link:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: #d4a574;
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.3);
}

/* Gallery Styles */
.gallery {
    margin: 60px 0;
}

.gallery h2 {
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.deadwatch-page .gallery-item {
    border: 2px solid rgba(0, 0, 0, 0.5);
}

.gallery-item:hover {
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
}

.deadwatch-page .gallery-item:hover {
    border-color: #d4a574;
    box-shadow: 0 5px 20px rgba(212, 165, 116, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

.deadwatch-page .lightbox-content img {
    box-shadow: 0 0 50px rgba(212, 165, 116, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 10px;
}

.lightbox-close:hover {
    color: #00d4ff;
    transform: rotate(90deg);
}

.deadwatch-page .lightbox-close:hover {
    color: #d4a574;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid rgba(0, 212, 255, 0.5);
    color: #fff;
    font-size: 30px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.deadwatch-page .lightbox-nav {
    background: rgba(212, 165, 116, 0.2);
    border: 2px solid rgba(212, 165, 116, 0.5);
}

.lightbox-nav:hover {
    background: rgba(0, 212, 255, 0.4);
    border-color: #00d4ff;
}

.deadwatch-page .lightbox-nav:hover {
    background: rgba(212, 165, 116, 0.4);
    border-color: #d4a574;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    color: #909090;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }

    .buttons-container {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }

    .game-button img {
        width: 250px;
        height: 250px;
    }

    .button-text {
        font-size: 1.3rem;
    }

    .game-header h1 {
        font-size: 2.5rem;
    }

    .game-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .game-image img {
        max-width: 100%;
    }

    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.8rem;
    }

    .features {
        padding: 25px;
    }

    .features h2 {
        font-size: 1.5rem;
    }

    .container {
        padding-top: 150px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        font-size: 20px;
        padding: 5px 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .game-button img {
        width: 200px;
        height: 200px;
    }

    .button-text {
        font-size: 1rem;
    }

    .game-header h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .game-description p {
        font-size: 0.95rem;
    }

    .navbar {
        padding: 10px 15px;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }
}
