* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #01D9FF;
    --primary-glow: #33e3ff;
    --dark: #0a0a0a;
    --dark-alt: #1a1a1a;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#fivem-status {
  background-color: #1a1a1a;
  color: #f0f0f0;
  font-family: 'Segoe UI', sans-serif;
  padding: 12px 20px;
  border-radius: 8px;
  max-width: 280px;
  margin: 20px auto;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

.server-name {
  font-size: 18px;
  font-weight: 600;
  color: #ff8000;
  margin-bottom: 6px;
}

.status-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.player-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

img.player-icon {
  max-width: 100%;
  height: auto;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(1, 217, 255, 0.1);
}

  .visitorCounter {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: sans-serif;
    font-size: 14px;
    z-index: 1000;
  }

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  filter: drop-shadow(0 0 8px rgba(0, 205, 251, 0.6));
  transition: filter 0.3s;
}

.logo-text {
  font-size: 20px;
  margin-left: 10px;
  color: rgb(0, 205, 251);
  text-shadow: 0 0 8px rgba(0, 205, 251, 0.6);
  font-weight: 600;
  transition: text-shadow 0.3s;
}

.logo:hover .logo-img {
  filter: drop-shadow(0 0 12px rgba(0, 205, 251, 0.9));
}

.logo:hover .logo-text {
  text-shadow: 0 0 12px rgba(0, 205, 251, 0.9);
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(0, 205, 251, 0.6); }
  50% { text-shadow: 0 0 12px rgba(0, 205, 251, 1); }
}

.logo-text {
  animation: glowPulse 2s infinite;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid rgba(1, 217, 255, 0.2);
  background: var(--dark-alt);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(1, 217, 255, 0.5);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--dark);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: var(--primary-glow);
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
  10% { opacity: 1; transform: translateX(-50%) translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}


.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.lang-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--white);
    padding: 5px 15px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.lang-btn.active {
    background: var(--primary);
    color: var(--dark);
}

.lang-btn:hover {
    background: var(--primary-glow);
    color: var(--dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(1, 217, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.3s;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(16px, 3vw, 24px);
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(1, 217, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-glow);
    box-shadow: 0 0 50px rgba(1, 217, 255, 0.5);
    transform: translateY(-3px);
}

/* Section Styles */
section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 50px;
    color: var(--primary);
}

/* About Section */
.about {
    background: var(--dark-alt);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    font-size: 18px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--dark);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(1, 217, 255, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(1, 217, 255, 0.2);
}

.feature-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

/* Staff Section */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.staff-card {
    background: var(--dark-alt);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(1, 217, 255, 0.1);
    transition: all 0.3s;
}

.staff-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(1, 217, 255, 0.2);
}

.staff-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary);
}

.staff-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-style: italic;
}

.staff-card a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.staff-card a:hover {
    color: var(--primary);
}

/* Discord Section */
.discord-section {
    background: var(--dark-alt);
    text-align: center;
}

.discord-widget-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.discord-info {
    text-align: left;
}

.discord-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary);
}

.member-count {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.member-label {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: var(--dark-alt);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary);
}

/* Social Section */
.social-section {
    background: var(--dark-alt);
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.social-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
    text-decoration: none;
    border: 2px solid rgba(1, 217, 255, 0.1);
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(1, 217, 255, 0.5);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: var(--dark);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(1, 217, 255, 0.1);
}

footer p {
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s;
}

.last-updated {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 20px;
}

.terms-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-alt);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(1, 217, 255, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  border: 1px solid rgba(1, 217, 255, 0.2);
}

.terms-popup input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: var(--primary);
}

.terms-popup button {
  background-color: var(--primary);
  color: var(--dark);
  border: none;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.terms-popup button:hover:enabled {
  background-color: var(--primary-glow);
}

.terms-popup button:disabled {
  background-color: #555;
  cursor: not-allowed;
}

.cookie-icon {
  font-size: 24px;
  color: #d2691e; /* realistinen keksi-ruskea */
  margin-right: 10px;
  transition: transform 0.3s;
}

.spin-cookie {
  animation: spin 4s linear infinite;
}

.cookie-icon:hover {
  color: #e38b3c; /* vaaleampi paistettu s채vy */
  transform: scale(1.1);
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



#submitBtn {
  pointer-events: auto;
  opacity: 1;
  z-index: 9999;
}

.contact-notice {
  max-width: 700px;
  margin: 30px auto;
  padding: 25px;
  background: linear-gradient(135deg, rgba(1, 217, 255, 0.1) 0%, rgba(1, 217, 255, 0.05) 100%);
  border: 2px solid var(--primary);
  border-radius: 15px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 0 20px rgba(1, 217, 255, 0.2);
}

.notice-icon {
  font-size: 36px;
  color: var(--primary);
  flex-shrink: 0;
}

.notice-content h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 22px;
}

.notice-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 16px;
}

.notice-content strong {
  color: var(--primary);
  font-weight: 600;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 30px auto 0;
}

.contact input,
.contact textarea {
  padding: 15px;
  border-radius: 8px;
  border: 2px solid rgba(1, 217, 255, 0.2);
  background: var(--dark);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  transition: all 0.3s;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(1, 217, 255, 0.3);
}

.contact textarea {
  resize: vertical;
  min-height: 120px;
}

.contact .btn-primary {
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
  padding: 15px;
}

.contact .btn-primary:hover {
  background-color: var(--primary-glow);
  transform: translateY(-2px);
}

.g-recaptcha {
  transform: scale(0.95);
  transform-origin: center;
}

@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.85);
  }
}

.btn-primary {
  background-color: var(--primary);
  color: var(--dark);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: var(--primary-glow);
}


@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .social-icons {
        flex-wrap: wrap;
    }

    .discord-widget-wrapper iframe {
        width: 100%;
        max-width: 350px;
    }
}

.highlight-link {
  color: #01D9FF !important;
  text-decoration: none; /* poistaa alleviivauksen, jos haluat */
}

.highlight-link:hover {
  color: #01D9FF !important; /* väri hoverissa */
  text-decoration: underline; /* alleviivaus hoverissa */
}

.custom-link {
  color: #01D9FF !important; /* linkin väri */
  text-decoration: none; /* poistaa alleviivauksen */
}

.custom-link:hover {
  color: #01D9FF !important; /* hover-efekti */
  text-decoration: underline; /* alleviivaus hoverissa */
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-content.styled-card {
  background-color: #0f0f0f;
  border: 2px solid #00ffff;
  border-radius: 16px;
  padding: 30px;
  width: 400px;
  margin: 8% auto;
  text-align: center;
  box-shadow: 0 0 25px rgba(0,255,255,0.5);
  color: #ccc;
  font-family: 'Segoe UI', sans-serif;
}

.modal-content h3 {
  color: #00ffff;
  font-size: 26px;
  margin-bottom: 10px;
}

.modal-content p {
  font-style: italic;
  color: #aaa;
  font-size: 18px;
  margin-bottom: 14px;
}

.discord-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 17px;
  margin-bottom: 10px;
}

.discord-contact i {
  color: #5865F2;
  font-size: 22px;
}

.status-indicator {
  font-weight: bold;
  margin-bottom: 10px;
}
.status-indicator.online {
  color: #43b581;
}
.status-indicator.offline {
  color: #747f8d;
}

.modal-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 0 12px rgba(0,255,255,0.4);
}

.discord-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background-color: #5865F2;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.discord-link:hover {
  background-color: #4752c4;
}

.close-btn {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.close-btn:hover {
  color: #ff5555;
}


