/* Reset and Base Styles */
:root {
    --primary-color: #ff6600;
    --primary-hover: #e65c00;
    --dark-bg: #0a0a0a;
    --card-bg: #111111;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --container-width: 1200px;
    --font-main: 'Noto Sans Georgian', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/grunge-overlay.jpg');
    background-size: cover;
    opacity: 0.1;
    /* Adjusted visibility */
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    /* Slightly rounded corners */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(90deg, #ff6600 0%, #ff8533 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.full-width {
    display: block;
    width: 100%;
    text-align: center;
}

/* Header */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

nav a:hover,
nav a.active {
    color: white;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.online-status i {
    color: var(--text-muted);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/s5-background.png');
    /* Assuming this is a dark bg or I should use a gradient if not */
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: -1;
}

.hero-bg-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bgretro.avif');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
    mix-blend-mode: overlay;
}

/* Fallback if image isn't great for hero */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), #0a0a0a);
}

.hero-content {
    z-index: 2;
    padding-top: 80px;
}

.server-ip-container {
    margin-top: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.server-ip {
    color: var(--primary-color);
    cursor: pointer;
    border-bottom: 2px dashed rgba(255, 102, 0, 0.5);
    transition: all 0.3s ease;
    padding-bottom: 2px;
    margin-left: 5px;
}

.server-ip:hover {
    color: white;
    border-bottom-color: white;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.8);
}



.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 50%;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 2000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #000;
    margin: auto;
    padding: 0;
    border: 1px solid #333;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    position: relative;
    border-radius: 8px;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: -40px;
    right: 0;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    padding-top: 25px;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 0 8px 8px;
}

/* Features Section */
.feature-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    position: relative;
}

.feature-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.feature-text {
    flex: 1;
}

.play-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.play-icon {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.play-icon:hover {
    background: var(--primary-color);
    color: white;
}

/* Info Section (Cards) */
.info-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: left;
    /* Image shows mostly left aligned or center? Image shows left aligned titles for features, but cards title is left aligned too */
    margin-bottom: 50px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #222;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    position: relative;
}

.gta-bg,
.fivem-bg,
.youtube-bg,
.discord-bg {
    background-size: cover;
    background-position: center;
}

/* Placeholder gradients if images not available */
.gta-bg {
    background: linear-gradient(45deg, #2b2b2b, #444);
}

.fivem-bg {
    background: linear-gradient(45deg, #f45b69, #ff6600);
    /* FiveM Inspired Gradient */
}

.youtube-bg {
    background: #ff0000;
    color: white;
}

.discord-bg {
    background: #5865F2;
    color: white;
}

.tiktok-bg {
    background: linear-gradient(45deg, #000000, #25F4EE, #FE2C55);
    color: white;
}

.card-image h3 {
    margin: 0;
    font-size: 1.5rem;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.card-content {
    padding: 30px;
}

.card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Footer */
footer {
    background-color: #000;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid #222;
    text-align: center;
}

.copyright {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.8;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 900px) {

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    nav,
    .user-actions {
        display: none;
    }

    /* Mobile Menu would need more complex implementation, hiding for simplicity of "pixel perfect" desktop focus first, but adding toggle */
    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Animated UI Elements */
.ui-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.ui-circle {
    width: 400px;
    height: 400px;
    border: 1px dashed rgba(255, 102, 0, 0.1);
    border-radius: 50%;
    position: absolute;
    top: -100px;
    right: -100px;
    animation: rotate 20s linear infinite;
}

.ui-circle-small {
    width: 200px;
    height: 200px;
    border: 1px dotted rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: absolute;
    bottom: 50px;
    left: -50px;
    animation: rotate 15s linear infinite reverse;
}

.ui-line {
    position: absolute;
    width: 1px;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(255, 102, 0, 0.5), transparent);
    left: 20%;
    top: 10%;
    animation: floatY 5s ease-in-out infinite;
}

.ui-line:nth-child(2) {
    left: 80%;
    top: 60%;
    animation-delay: 2s;
    height: 200px;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(30px);
        opacity: 0.8;
    }
}