﻿/* ======== RESET ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ======== BODY ======== */
body {
  background-color: #181818;
  color: #ffffff;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  text-align: center;
  margin: 0;
  scroll-behavior: smooth;
}

/* ======== HEADER ======== */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(212, 4, 4, 0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  transition: all 0.4s ease;
  backdrop-filter: saturate(1) blur(0px);
}

header.scrolled {
  background-color: rgba(212, 4, 4, 0.95);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  padding: 10px 28px;
  backdrop-filter: saturate(1.2) blur(2px);
}

header h1 {
  font-size: 1.5em;
  letter-spacing: 0.5px;
}

nav a {
  color: #ffffff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
  color: #ffcccc;
  transform: translateY(-1px);
}

/* ======== MAIN CONTENT ======== */
main {
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

h2 {
  color: #ffffff;
  margin-bottom: 20px;
}

p {
  color: #dddddd;
  margin-bottom: 18px;
}

/* ======== GALLERY PREVIEW ======== */
.gallery-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.gallery-card {
  background-color: #202020;
  border-radius: 12px;
  overflow: hidden;
  width: 320px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 6px 20px rgba(212, 4, 4, 0.4);
  border-color: rgba(212, 4, 4, 0.8);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-card h3 {
  margin: 12px 0 5px;
  font-size: 1.2em;
}

.gallery-card h3 a {
  color: #cccccc;
  transition: color 0.3s ease;
}

.gallery-card h3 a:hover {
  color: #ff5555;
}

.gallery-card p {
  color: #aaaaaa;
  font-size: 0.95em;
  margin-bottom: 15px;
}

/* ======== BUTTONS ======== */
button {
  background: #d40404;
  border: none;
  padding: 12px 28px;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background: #ff4444;
  box-shadow: 0 4px 14px rgba(255, 68, 68, 0.4);
  transform: translateY(-1px);
}

/* ======== FOOTER ======== */
footer {
  text-align: center;
  padding: 20px;
  color: #aaaaaa;
  background-color: #111111;
  font-size: 0.9em;
  margin-top: 40px;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav a {
    display: inline-block;
    margin: 10px 10px;
  }

  .gallery-preview {
    flex-direction: column;
    align-items: center;
  }

  .gallery-card {
    width: 90%;
  }
}
