@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

@font-face {
    font-family: 'Minecraft';
    src: url('./minecraft.ttf') format('truetype');
}

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

body {
    font-family: 'Righteous', Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Навигационное меню */
.navbar {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    border-radius: 0 0 50px 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    z-index: 1000;
    transition: top 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar.visible {
    top: 0;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 20px;
    border-radius: 20px;
    position: relative;
}

.nav-links a:hover {
    background: rgba(79, 195, 247, 0.1);
    color: #4fc3f7;
}

.nav-links a:last-child {
    background: rgba(79, 195, 247, 0.2);
    border: 1px solid rgba(79, 195, 247, 0.4);
}

.nav-links a:last-child:hover {
    background: rgba(79, 195, 247, 0.3);
    border-color: #4fc3f7;
}

/* Главная секция */
.hero {
    min-height: 100vh;
    background-image: url('./background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 60px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #0a0a0a, transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.main-title {
    font-family: 'Minecraft', sans-serif;
    font-size: 64px;
    background: linear-gradient(45deg, #4fc3f7, #ffffff, #4fc3f7, #ffffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 0 30px rgba(79, 195, 247, 0.5);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Секция О проекте */
.about {
    padding: 100px 60px;
    background: 
        linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.95)),
        repeating-linear-gradient(0deg, #1a1a1a 0px, #1a1a1a 2px, transparent 2px, transparent 60px),
        repeating-linear-gradient(90deg, #1a1a1a 0px, #1a1a1a 2px, transparent 2px, transparent 60px);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    position: relative;
}

.about::before,
.about::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 150px;
    pointer-events: none;
}

.about::before {
    top: 0;
    background: linear-gradient(to bottom, #0a0a0a, transparent);
}

.about::after {
    bottom: 0;
    background: linear-gradient(to top, #0a0a0a, transparent);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
}

.project-highlight {
    background: linear-gradient(45deg, #4fc3f7, #ffffff, #4fc3f7, #ffffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    font-weight: 600;
}

/* Секция с особенностями */
.features {
    padding: 100px 60px;
    background: 
        linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.95)),
        repeating-linear-gradient(0deg, #1a1a1a 0px, #1a1a1a 2px, transparent 2px, transparent 60px),
        repeating-linear-gradient(90deg, #1a1a1a 0px, #1a1a1a 2px, transparent 2px, transparent 60px);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    position: relative;
}

.features::before,
.features::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 150px;
    pointer-events: none;
}

.features::before {
    top: 0;
    background: linear-gradient(to bottom, #0a0a0a, transparent);
}

.features::after {
    bottom: 0;
    background: linear-gradient(to top, #0a0a0a, transparent);
}

.features-content {
    max-width: 1000px;
    margin: 0 auto;
}

.feature-section {
    margin-bottom: 60px;
}

.feature-section:last-child {
    margin-bottom: 0;
}

.feature-section h3 {
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #4fc3f7;
}

.feature-section h3 i {
    font-size: 32px;
}

.feature-section p {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
    text-align: justify;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    font-weight: 300;
}

/* Галерея */
.gallery {
    padding: 100px 60px;
    background: 
        linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.95)),
        repeating-linear-gradient(0deg, #1a1a1a 0px, #1a1a1a 2px, transparent 2px, transparent 60px),
        repeating-linear-gradient(90deg, #1a1a1a 0px, #1a1a1a 2px, transparent 2px, transparent 60px);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    position: relative;
}

.gallery::before,
.gallery::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 150px;
    pointer-events: none;
}

.gallery::before {
    top: 0;
    background: linear-gradient(to bottom, #0a0a0a, transparent);
}

.gallery::after {
    bottom: 0;
    background: linear-gradient(to top, #0a0a0a, transparent);
}

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

.gallery-item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.load-more {
    display: block;
    margin: 0 auto;
    padding: 15px 50px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 16px;
    font-family: 'Righteous', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.4s ease;
}

.load-more:hover {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Модальное окно для изображений */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

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

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

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

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    line-height: 1;
}

.modal-close:hover {
    color: #4fc3f7;
    transform: rotate(90deg);
}

.load-more {
    display: block;
    margin: 0 auto;
    padding: 15px 50px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.load-more:hover {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Модальное окно для изображений */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

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

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

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

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    line-height: 1;
}

.modal-close:hover {
    color: #4fc3f7;
    transform: rotate(90deg);
}

/* Секция подачи заявки */
.apply {
    padding: 100px 60px;
    background: 
        linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.95)),
        repeating-linear-gradient(0deg, #1a1a1a 0px, #1a1a1a 2px, transparent 2px, transparent 60px),
        repeating-linear-gradient(90deg, #1a1a1a 0px, #1a1a1a 2px, transparent 2px, transparent 60px);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    text-align: center;
    position: relative;
}

.apply::before,
.apply::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 150px;
    pointer-events: none;
}

.apply::before {
    top: 0;
    background: linear-gradient(to bottom, #0a0a0a, transparent);
}

.apply::after {
    bottom: 0;
    background: linear-gradient(to top, #0a0a0a, transparent);
}

.diamonds-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.diamond {
    position: absolute;
    width: 16px;
    height: 16px;
    background-image: url('./diamond_ore.png');
    background-size: contain;
    opacity: 0.6;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.apply-button {
    padding: 20px 60px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    text-decoration: none;
    display: inline-block;
}

.apply-button:hover {
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

/* Footer */
.footer {
    padding: 0;
    background: #0a0a0a;
    text-align: center;
    position: relative;
}

.footer-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #ffffff 20%, #ffffff 80%, transparent);
    margin-bottom: 60px;
}

.footer-content {
    padding: 0 60px 40px;
}

.footer-title {
    font-size: 42px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-join {
    color: #ffffff;
    font-family: 'Righteous', Arial, sans-serif;
    font-weight: 400;
}

.footer-project {
    font-family: 'Minecraft', sans-serif;
    background: linear-gradient(45deg, #4fc3f7, #ffffff, #4fc3f7, #ffffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

.copyright {
    font-size: 14px;
    background: linear-gradient(45deg, #888, #fff, #888);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

.copyright a {
    color: inherit;
    text-decoration: none;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 42px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 6px 15px;
    }
    
    .navbar {
        padding: 12px 25px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero,
    .about,
    .features,
    .gallery,
    .apply {
        padding: 60px 30px;
    }
    
    .footer-title {
        font-size: 32px;
    }
    
    .feature-section h3 {
        font-size: 24px;
    }
    
    .feature-section p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .navbar {
        padding: 10px 20px;
    }
}