/* Мега 2.0 - Стили лендинга с бесконечным фоном */

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header с бесконечным фоном */
.header {
    background-image: url('header-bg.png');
    background-repeat: repeat-x;
    background-position: top center;
    background-size: auto 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(20,20,20,0.6) 100%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.header h1 {
    font-size: 8rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #ffac53, #333333);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    letter-spacing: 3px;
}


.subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #b0b0b0;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #ffac53, #ff8c42);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255,172,83,0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,172,83,0.6);
}

/* Main Content с бесконечным фоном */
.main-content {
    background-image: url('panel-bg.png');
    background-repeat: repeat;
    background-position: center;
    background-size: auto;
    min-height: 100vh;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,10,0.9);
    z-index: 1;
}

.main-content .container {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
}

/* Секции */
section {
    margin-bottom: 80px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #ffac53;
    text-shadow: 0 0 20px rgba(255,172,83,0.5);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffac53;
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ffac53;
}

/* About Section */
.about-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.about-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #d0d0d0;
}

/* Features Grid */
.features-rows {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: start;
    background: rgba(20,20,20,0.6);
    border: 1px solid rgba(255,172,83,0.15);
    border-radius: 16px;
    padding: 24px;
}

.feature-info p {
    color: #b0b0b0;
}

.feature-visuals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.screen-col { position: relative; }

.screen-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(10,10,10,0.8);
    border: 1px solid rgba(255,172,83,0.6);
    color: #ffac53;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    z-index: 3;
}

.screenshot {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,172,83,0.15);
    padding: 6px;
}

.screenshot:hover {
    transform: scale(1.02);
}

.screenshot img {
    width: 100%;
    height: auto;
    max-height: 260px;
    display: block;
    transition: all 0.3s ease;
}

.screenshot:hover img {
    filter: brightness(1.1);
}

/* Gallery Section */
.gallery-section {
    margin-top: 100px;
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(20,20,20,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: rgba(255,172,83,0.3);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1.2);
}

/* Team Section */
.team-section {
    text-align: center;
    background: rgba(20,20,20,0.6);
    border-radius: 20px;
    padding: 60px 40px;
    border: 1px solid rgba(255,172,83,0.2);
}

.team-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,172,83,0.25);
    background: rgba(10,10,10,0.5);
    text-decoration: none;
    transition: all .2s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,172,83,0.5);
    box-shadow: 0 10px 30px rgba(255,172,83,0.15);
}

.team-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,172,83,0.3);
}

.team-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-name {
    font-size: 16px;
    color: #e5e5e5;
}

.team-role {
    font-size: 14px;
    color: #b0b0b0;
}

.team-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #0a0a0a;
    background: #ffac53;
}

/* Links Section */
.links-section {
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.link-button {
    display: block;
    padding: 20px 30px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.link-button.primary {
    background: linear-gradient(45deg, #ffac53, #ff8c42);
    color: white;
    box-shadow: 0 10px 30px rgba(255,172,83,0.4);
}

.link-button.secondary {
    background: rgba(20,20,20,0.8);
    color: #ffac53;
    border: 2px solid #ffac53;
}

.link-button:hover {
    transform: translateY(-3px);
}

.link-button.primary:hover {
    box-shadow: 0 15px 40px rgba(255,172,83,0.6);
}

.link-button.secondary:hover {
    background: rgba(255,172,83,0.1);
    box-shadow: 0 10px 30px rgba(255,172,83,0.3);
}

/* Footer с бесконечным фоном */
.footer {
    background-image: url('foter-bg.png');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 100%;
    min-height: 300px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(20,20,20,0.8) 100%);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-section h3 {
    color: #ffac53;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: #ffac53;
    margin-bottom: 15px;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.8;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255,172,83,0.3);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ffac53;
}

/* Accent links */
a {
    color: #ffac53;
    text-decoration: none;
}
a:hover {
    color: #ffbf7a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .screenshots-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .main-content .container {
        padding: 40px 15px;
    }
    
    section {
        margin-bottom: 40px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .gallery-item img {
        height: 120px;
    }
}

/* Сетка галереи: адаптивные колонки */
@media (max-width: 1024px) {
    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .screenshots-gallery {
        grid-template-columns: 1fr;
    }
}

/* Анимации загрузки */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .gallery-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Gradient animation for header title */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Скролл-бар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ffac53, #ff8c42);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff8c42, #ff6b35);
}
