//* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    text-align: center;
    line-height: 1.6;
}

.burger {
    position: fixed;
    display: none;
    font-size: 4rem;
    margin: 0 1rem;
    right: 2rem;
    top: 2rem;
    border-radius: 1rem;
    z-index: 9999;
}

.nakladka {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.85);
    height: 100%;
    width: 0;
    overflow: hidden;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nakladka ol {
    text-align: center;
}

.nakladka ol li a {
    display: block;
    padding: 3vh 25vh;
    color: #fff;
    margin-bottom: 1rem;
    font-size: 6vw;
    text-decoration: none;
    font-weight: 800;
}

.nakladka ol li a:hover {
    background-color: #333;
    color: #fff;
}

nav {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

nav ul li{
    display: flex;
    align-items: center;
}

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    transition: color 0.3s, background 0.3s;
    border-radius: 5px;
}

nav ul li p{
    display: flex;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    transition: color 0.3s, background 0.3s;
    border-radius: 5px;
}

nav ul li a:hover {
    color: #f39c12;
    background: rgba(255, 255, 255, 0.1);
}

a {
    text-decoration: none;
}

#nav-img {
    height: 8vh;
    width: auto;
    position: fixed;
    right: 1vh;
    bottom: 1vh;
    z-index: 100;
    opacity: 1;
}

#nav-desk-img {
    height: 4rem;
}

/* Header */
header {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1485470733090-0aae1788d5af?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header .overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 50px;
    border-radius: 15px;
    animation: fadeIn 2s ease-in-out;
}

header h1 {
    font-size: 60px;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header p {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn1 {
    color: #000;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    display: inline-block;
}

.btn {
    background: #f39c12;
    color: #000;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
    display: inline-block;
}

.btn:hover {
    background: #e67e22;
    transform: translateY(-5px);
}

/* About Section */
#about {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 20px;
    background: url('../img/background.avif') no-repeat center center/cover;
    background-attachment: fixed; 
    color: #fff;
    z-index: 1;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: -1;
}

.about-content {
    position: relative;
    z-index: 2;
}

#about h2 {
    font-size: 42px;
    margin-bottom: 1vh;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#about p{
    margin-bottom: 30px;
    font-size: 18px;
}

.content {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: rgba(34, 34, 34, 0.8); 
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    width: 300px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.card img:hover {
    transform: scale(1.1);
}

.card h3 {
    font-size: 24px;
    margin: 15px 0;
    font-weight: 600;
}

.card p {
    font-size: 16px;
    color: #ccc;
}

/* Gallery Section */
#gallery {
    padding: 80px 20px;
    background: #000;
}

#gallery h2 {
    font-size: 42px;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-container img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
}

/* Contact Section */
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    max-width: 1200px;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x)* .5);
    padding-left: calc(var(--bs-gutter-x)* .5);
    margin-right: auto;
    margin-left: auto;
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x)* .5);
    padding-left: calc(var(--bs-gutter-x)* .5);
    margin-top: var(--bs-gutter-y);
}

.col-cont {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

#contact {
    min-height: 50vh;
    font-size: 1.1rem;
    background: #1e1e21;
    padding: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#contact .row:not(:first-child) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#contact p, #contact a {
    color: rgb(255, 255, 255);
    opacity: .7;
}

#contact a:hover {
    opacity: 1;
}

#contact h3 {
    font-size: 1.1rem;
    color: rgb(255, 255, 255);
}

#contact input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(169, 140, 103, .9);
    border-radius: 0;
}

input[placeholder] {
    color: burlywood !important;
    opacity: .6;
}

input:focus {
    box-shadow: none !important;
}

#contact button[type="submit"] {
    position: absolute;
    top: 75px;
    right: 0;
}

#contact p .d-block {
    font-style: italic;
    font-weight: bold;
}

@media (min-width: 576px) {
    .col-cont {
        flex: 0 0 auto;
        width: 50%;
    }
    
}

@media (min-width: 768px) {
    .col-cont {
        flex: 0 0 auto;
        width: 25%;
    }
}

@media screen and (max-width: 700px) {
    nav{
        display: none;
    }

    header .container-fluid {
      max-height: 60vh;
    }
    
    .burger {
        display: block;
        position: fixed;
        z-index: 1000;
    }

    a.btn {
      max-width: 40%;
      margin: 0 auto;
      background: burlywood;
      color: white;
    }
  
    .container-fluid .container {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  
    #contact {
      padding-left: 0;
      padding-right: 0;
      text-align: center;
    }
}

@media screen and (max-width: 800px) {
    header {
      max-height: 80vh;
    }
}

@media screen and (max-width: 1040px) {
    #about {
        height: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}     
@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

header .overlay {
    animation: floatUpDown 3s ease-in-out infinite;
}


/* header overlay */
header .overlay {
    animation: floatUpDown 3s ease-in-out infinite;
}

/* About cards — с разной задержкой */
#about .card {
    animation: floatUpDown 4s ease-in-out infinite;
}

#about .card:nth-child(1) {
    animation-delay: 0s;
}

#about .card:nth-child(2) {
    animation-delay: 0.5s;
}

#about .card:nth-child(3) {
    animation-delay: 1s;
}

#gallery {
  position: relative;
  z-index: 1;
}
/* ===== GALERIA ===== */
#gallery {
  position: relative;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

/* Контент поверх фона */
.gallery-container {
  position: relative;
  z-index: 2;
}

/* ⭐ Белые звезды */
#gallery .stars {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(white 0.8px, transparent 2px),
    radial-gradient(white 0.8px, transparent 2px);
  background-size: 40px 40px, 80px 80px;
  background-position: 0 0, 20px 20px;
  animation: starsMove 10s linear infinite;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  filter: brightness(160%);
}

/* 🟣 Фиолетовая сфера слева */
#gallery .fog-left {
  position: absolute;
  top: 30%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at center,
    rgba(200, 0, 255, 0.6),
    rgba(200, 0, 255, 0.5),
    transparent 70%);
  filter: blur(40px) brightness(180%) contrast(160%);
  animation: fogDriftLeft 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

/* 🔵 Голубая сфера справа */
#gallery .fog-right {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle at center,
    rgba(0, 255, 255, 0.5),
    rgba(0, 200, 255, 0.5),
    transparent 70%);
  filter: blur(60px) brightness(180%) contrast(160%);
  animation: fogDriftRight 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

/* === АНИМАЦИИ === */
@keyframes starsMove {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

@keyframes fogDriftLeft {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-60px, 40px); }
  100% { transform: translate(0, 0); }
}

@keyframes fogDriftRight {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(60px, -30px); }
  100% { transform: translate(0, 0); }
}

