/*
Theme Name: JendrAstro
Author: SynetiqIT
Description: JendrAstro
Version: 1.1
*/

@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,400;0,700;0,800;1,400&family=Roboto:wght@300;400;700&display=swap&subset=latin-ext');

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

body {
    font-family: 'Exo 2', sans-serif;
    color: #fff;
    overflow: hidden; 
    height: 100vh;
    width: 100vw;
    background-color: #0b0d17;
}

#bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('CanSat - JendrAstro.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px) brightness(0.6);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 0 40px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo img {
    height: 60px;
    border-radius: 50%;
    border: 2px solid #e67e22;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: color 0.3s;
    cursor: pointer;
    letter-spacing: 1px;
}

nav ul li a:hover, nav ul li a.active {
    color: #e67e22;
    text-shadow: 0 0 15px rgba(230, 126, 34, 0.8);
}

main {
    position: relative;
    width: 100%;
    height: 100vh;
    padding-top: 90px;
    padding-bottom: 40px;
}

.page-section {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100vh - 130px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    overflow-y: auto; 
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-section.active-section {
    opacity: 1;
    visibility: visible;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0b0d17; 
}
::-webkit-scrollbar-thumb {
    background: #e67e22; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d35400; 
}

#home {
    justify-content: flex-start;
    padding-top: 20px;
    overflow-x: hidden;
}

.title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.home-logo-img {
    height: 110px;
    width: auto;
    border-radius: 50%;
    border: 3px solid #e67e22;
    box-shadow: 0 0 25px rgba(230, 126, 34, 0.5);
}

.main-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 5.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 25px rgba(230, 126, 34, 0.6);
    margin-bottom: 0;
    line-height: 1;
    letter-spacing: 2px;
}

.home-slide-container {
    width: 90%;
    max-width: 1400px;
    height: 55vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px; 
}

.home-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: row; 
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 0;
    visibility: hidden;
}

.home-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.home-slide img {
    width: 55%; 
    height: 100%;
    object-fit: cover;
    border-radius: 15px 0 0 15px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-right: none;
}

.home-slide .caption {
    width: 45%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    padding: 30px;
    border-radius: 0 15px 15px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid #e67e22;
    
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.home-slide .caption h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #e67e22;
    text-align: center;
    flex-shrink: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.scrollable-text {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 15px;
    font-size: 1.15rem;
    line-height: 1.6;
    text-align: justify;
    font-weight: 300;
}

.progress-bar-container {
    position: absolute;
    bottom: -20px; 
    left: 0;
    width: 100%; 
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    z-index: 20;
    pointer-events: none;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #e67e22;
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.6);
}

@keyframes loadSlide {
    from { width: 0%; }
    to { width: 100%; }
}

.progress-bar.animating {
    animation: loadSlide 5000ms linear forwards;
}

.home-slide-container.paused .progress-bar {
    animation-play-state: paused;
}

#about {
    overflow: hidden; 
    padding-top: 60px; 
}

.section-main-title {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    z-index: 20;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.about-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-slide {
    position: absolute;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease;
    transform: translateY(50px); 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    pointer-events: none; 
}

.about-slide.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 10;
    pointer-events: all;
}

.about-card {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 70vh; 
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

.about-card.layout-normal {
    flex-direction: row;
}

.about-card.layout-reverse {
    flex-direction: row-reverse;
}

.about-img-box {
    width: 45%;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.about-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
    cursor: zoom-in;
}

.about-img-box img:hover {
    transform: scale(1.05);
}

.about-text-box {
    width: 55%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.layout-reverse .about-text-box {
    text-align: right; 
    border-right: 4px solid #e67e22; 
}

.layout-normal .about-text-box {
    text-align: left;
    border-left: 4px solid #e67e22; 
}

.about-text-box h3 {
    font-size: 3rem;
    color: #e67e22;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.member-role {
    font-size: 1.2rem;
    color: #bbb;
    margin-bottom: 25px;
    font-style: italic;
    display: block;
    font-weight: 300;
}

.about-text-box p {
    font-size: 1.3rem;
    line-height: 1.7;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute; 
    bottom: 20px; 
    text-align: center; 
    width: 100%; 
    opacity: 0.7;
    animation: bounce 2s infinite;
    z-index: 15;
}

.scroll-indicator p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.scroll-indicator span {
    font-size: 2rem;
    color: #e67e22;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 1400px;
    padding-bottom: 50px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    aspect-ratio: 16/9;
    background: rgba(0,0,0,0.3);
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.98);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#lightbox img, #lightbox video {
    max-width: 95%;
    max-height: 80vh;
    border: 2px solid #e67e22;
}

.lightbox-controls {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.lb-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 25px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
}

.lb-btn:hover {
    background: #e67e22;
    border-color: #e67e22;
}

#lb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    cursor: pointer;
    color: #fff;
}

#contact {
    justify-content: center;
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 700px;
    width: 90%;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

.contact-card h2 {
    font-family: 'Exo 2', sans-serif;
    margin-bottom: 30px;
    color: #e67e22;
    font-size: 3rem;
    text-transform: uppercase;
}

.qr-code {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    border: 5px solid #fff; 
}

.qr-code img {
    width: 100%;
    height: 100%;
}

.contact-card p {
    margin-top: 30px;
    font-size: 1.4rem; 
    font-weight: 300;
}

/* ÚJ GOMBOK STÍLUSA */
.social-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-btn {
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    color: #fff;
    border: 2px solid transparent;
    display: inline-block;
    font-size: 1rem;
}

.insta-btn {
    border-color: #E1306C;
    background: rgba(225, 48, 108, 0.1);
}

.insta-btn:hover {
    background: #E1306C;
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.6);
    transform: translateY(-3px);
}

.fb-btn {
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.1);
}

.fb-btn:hover {
    background: #1877F2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.6);
    transform: translateY(-3px);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #bbb;
    z-index: 1000;
}

@media (max-width: 900px) {
    header {
        height: auto;
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .logo img {
        height: 50px;
    }
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li a {
        font-size: 0.9rem;
    }

    main {
        padding-top: 140px; 
    }
    .page-section {
        top: 140px;
        height: calc(100vh - 180px);
    }
    
    .title-wrapper {
        gap: 15px;
        margin-bottom: 20px;
    }

    .home-logo-img {
        height: 60px;
    }

    .main-title {
        font-size: 3rem; 
    }

    .home-slide-container {
        height: auto; 
        min-height: auto;
        width: 100%;
        display: block;
    }

    .home-slide {
        flex-direction: column; 
        position: relative; 
        display: none; 
        gap: 15px;
        padding: 0;
        height: auto;
    }
    
    .home-slide.active {
        display: flex;
        position: relative; 
    }

    .home-slide img {
        width: 100%;
        height: auto;
        max-height: 40vh; 
        border-right: none;
        border-radius: 15px;
    }

    .home-slide .caption {
        width: 100%;
        height: auto;
        text-align: center;
        border-right: none;
        border-left: none;
        border-top: 3px solid #e67e22; 
        padding: 20px;
        border-radius: 15px;
    }
    
    .home-slide .caption h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .scrollable-text {
        text-align: center;
        max-height: 200px;
    }
    
    .progress-bar-container {
        width: 100%;
        bottom: -20px;
    }
    
    #about {
        overflow-y: auto; 
        display: block; 
        padding-top: 20px;
    }

    .section-main-title {
        position: relative;
        font-size: 2rem;
        margin-bottom: 30px;
        top: 0;
    }

    .about-content {
        display: flex;
        flex-direction: column; 
        height: auto;
        gap: 40px;
        padding-bottom: 60px;
    }

    .about-slide {
        position: relative; 
        opacity: 1; 
        transform: none; 
        display: flex;
        width: 100%;
        height: auto;
        margin-bottom: 20px; 
    }

    .about-card, .about-card.layout-normal, .about-card.layout-reverse {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    .about-img-box {
        width: 100%;
        height: 300px; 
    }

    .about-text-box, .layout-normal .about-text-box, .layout-reverse .about-text-box {
        width: 100%;
        padding: 20px;
        text-align: center;
        border: none;
        border-top: 3px solid #e67e22;
    }

    .about-text-box h3 {
        font-size: 2rem;
    }

    .about-text-box p {
        font-size: 1rem;
    }

    .scroll-indicator {
        display: none; 
    }

    .contact-card {
        padding: 30px 20px;
        max-width: 90%;
        border-radius: 20px;
    }
    .contact-card h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .qr-code {
        width: 200px;
        height: 200px;
        border-width: 4px;
    }
    .contact-card p {
        font-size: 1.1rem;
        margin-top: 20px;
    }
}