/* =========================================
   1. ALAPBEÁLLÍTÁSOK (INDEX SPECIFIKUS)
   ========================================= */
body {
    background-color: transparent !important;
}

.navbar, section, .container, footer {
    position: relative;
    z-index: 10;
}

/* =========================================
   2. HÁTTÉR VIDEÓ ÉS SÖTÉTÍTÉS
   ========================================= */
.back-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    object-fit: cover;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); 
    z-index: -5;
}

/* =========================================
   3. HERO SZEKCIÓ
   ========================================= */
.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

/* =========================================
   4. RÓLAM SZEKCIÓ
   ========================================= */
.about-section {
    background: rgba(44, 62, 80, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    margin: 4rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0, 0.3);
    color: white;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0; left: -50%; width: 100%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 0;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    text-align: left;
    position: relative;
    z-index: 1;
}

.about-image { flex-shrink: 0; }
.about-text { flex: 1; min-width: 300px; }

.about-image img {
    width: 280px; height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(230, 126, 34, 0.8);
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.4);
    animation: floatImage 6s ease-in-out infinite;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skills-list {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skills-list li {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(230, 126, 34, 0.3);
    transition: all 0.3s ease;
}

.skills-list li:hover {
    background: rgba(230, 126, 34, 0.2);
    border-color: #e67e22;
}

.skills-list i { color: #e67e22; margin-right: 10px; }

@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   5. FŐ PROFIL KÁRTYÁK
   ========================================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.project-card {
    background: rgba(44, 62, 80, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s, border-color 0.3s;
    display: block;
    backdrop-filter: blur(5px);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #e67e22;
    background: rgba(44, 62, 80, 0.95);
}

.project-card img { width: 100%; height: 200px; object-fit: cover; }
.project-card h3 { padding: 15px 15px 5px; color: #e67e22; }
.project-card p { padding: 0 15px 15px; font-size: 0.95rem; color: #bdc3c7; }

/* =========================================
   6. REFERENCIÁK
   ========================================= */
.references-section {
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    text-align: center;
    color: #bdc3c7;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.reference-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.reference-item {
    display: flex;
    align-items: center;
    gap: 50px;
    background: rgba(44, 62, 80, 0.6); 
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.reference-item:nth-child(even) { flex-direction: row-reverse; }

.reference-image {
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reference-image img { width: 100%; height: 100%; object-fit: cover; }
.reference-content { flex: 1; }
.reference-content h3 { font-size: 1.8rem; margin-bottom: 20px; color: #fff; }
.reference-content p { color: #ecf0f1; }

/* =========================================
   7. MOBIL OPTIMALIZÁCIÓ (INDEX SPECIFIC)
   ========================================= */
@media screen and (max-width: 900px) {
    /* Rólam szekció: Egymás alá rendezés */
    .about-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 30px;
    }

    .about-section {
        margin: 2rem 1rem !important;
        padding: 30px 20px !important;
    }

    .about-image img {
        width: 180px !important;
        height: 180px !important;
    }
    
    .skills-list {
        justify-content: center;
    }

    /* Referenciák: Mindig egymás alá, kép felül */
    .reference-item, 
    .reference-item:nth-child(even) {
        flex-direction: column !important;
        padding: 0 !important;
        overflow: hidden;
        gap: 0;
    }

    .reference-image {
        width: 100% !important;
        height: 220px !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .reference-content {
        padding: 20px !important;
        width: 100%;
    }
    
    .reference-content h3 {
        font-size: 1.4rem !important;
    }
}