/* Alap stílusok */
:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #81c784;
    --secondary-color: #ff8f00;
    --text-color: #333;
    --light-text: #f5f5f5;
    --dark-text: #212121;
    --background-light: #f9f9f9;
    --background-dark: #222;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigáció */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(46, 125, 50, 0.9);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-nav.scrolled {
    background-color: rgba(27, 94, 32, 0.95);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    padding-left: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    padding-right: 20px;
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 8px;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.hamburger {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

/* Hero rész */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Szekciók általános stílusa */
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

.about-bg {
    background-image: url('kepek/mezo.jpg');
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Rólam szekció */
.about-section {
    position: relative;
    padding: 60px 0;
    background-color: var(--background-light);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 0px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.profile-img {
    max-width: 85%;
    max-height: 85%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 5px solid var(--primary-color);
}

.highlight {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

/* Timeline konténer */
.timeline-container {
    padding: 80px 20px;
    background-color: #f8faf5;
    position: relative;
}

.timeline-main-title {
    text-align: center;
    font-size: 2.3rem;
    color: #2a5937;
    margin-bottom: 60px;
    position: relative;
    font-weight: 600;
}

.timeline-main-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3a7d46, #5ba367);
    border-radius: 2px;
}

/* Modern timeline */
.modern-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 50px;
}

/* Középvonal */
.timeline-axis {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(58, 125, 70, 0.2), 
        #3a7d46 20%, 
        #3a7d46 80%, 
        rgba(58, 125, 70, 0.2));
    z-index: 1;
}

/* Timeline item */
.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 60px;
    opacity: 0;
}

.left-item {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.right-item {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

.animate-item {
    animation: timelineFadeIn 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) forwards;
}

/* Timeline tartalom */
.timeline-content {
    position: relative;
    display: flex;
    flex-direction: column;
}

.left-item .timeline-content {
    align-items: flex-end;
}

.right-item .timeline-content {
    align-items: flex-start;
}

/* Ikon */
.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3a7d46, #5ba367);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 5px 15px rgba(58, 125, 70, 0.3);
    position: relative;
    z-index: 3;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.timeline-icon:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 20px rgba(58, 125, 70, 0.4);
}

/* Dátum */
.timeline-year {
    display: inline-block;
    padding: 6px 15px;
    background-color: #3a7d46;
    color: white;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    box-shadow: 0 3px 8px rgba(58, 125, 70, 0.2);
    position: relative;
    z-index: 2;
}

/* Tartalom */
.timeline-details {
    max-width: 400px;
}

.timeline-title {
    color: #2a5937;
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-description {
    color: #4a4a4a;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Animáció */
@keyframes timelineFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reszponzív design - JAVÍTOTT */
@media (max-width: 900px) {
    .timeline-axis {
        left: 40px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0;
        padding: 0 0 0 80px;
        text-align: left;
        margin-bottom: 40px;
    }
    
    .left-item, .right-item {
        left: 0;
        padding-right: 0;
        padding-left: 80px;
        text-align: left;
    }
    
    .left-item .timeline-content,
    .right-item .timeline-content {
        align-items: flex-start;
    }
    
    .timeline-icon {
        position: absolute;
        left: 10px;
        top: -10px;
        margin-bottom: 10px;
    }
    
    .timeline-year {
        margin-left: 80px;
        margin-top: -40px;
        align-self: flex-start;
    }
    
    .timeline-details {
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .timeline-main-title {
        font-size: 1.8rem;
    }
    
    
    
    .timeline-year {
        font-size: 0.85rem;
        margin-left: 80px;
        margin-top: -35px;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .timeline-description {
        font-size: 0.85rem;
    }
}
/* Galéria */
.gallery-section {
    padding: 100px 0;
    background-color: var(--background-dark);
}

.gallery-section .section-title {
    color: white;
}

.gallery-section .section-title::after {
    background-color: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.5rem;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* Kapcsolat szekció */
.contact-section {
    position: relative;
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('kepek/downloaded.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: -1;
    filter: brightness(1.2);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
}

.contact-card {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation-fill-mode: forwards;
}

.animate-card {
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.pulse {
    animation: pulse 4s infinite;
}

.contact-details h3 {
    color: #2e7d32;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-link {
    display: block;
    color: #2e7d32;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hover-effect:hover {
    color: #ff8f00;
    transform: translateX(5px);
}

.contact-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-address {
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}

.card-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3%;
    background: linear-gradient(90deg, #2e7d32, #4caf50);
    transition: all 0.5s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.contact-card:hover .card-wave {
    height: 8%;
}
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

/* Animációk */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Reszponzív stílusok */
@media (max-width: 768px) {
    .contact-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-card {
        max-width: 100%;
    }
    
}

/* Lábléc */
.footer {
    background-color: var(--dark-text);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #bbb;
}

/* Vissza a tetejére gomb */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Animációk */
/*@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}*/

/* Reszponzív stílusok */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }
}

/* Hamburger menü stílusok */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger i {
    font-size: 1.8rem;
    color: white;
    transition: var(--transition);
}

.hamburger.active i {
    transform: rotate(90deg);
}

/* Mobil navigáció*/
@media (max-width: 768px) {
    .hamburger {
        display: block;
        padding: 15px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(27, 94, 32, 0.98);
        flex-direction: column;
        align-items: flex-end; /* Jobbra igazítás */
        justify-content: flex-start;
        padding: 20px;
        transition: all 0.5s ease;
        z-index: 1000;
        backdrop-filter: blur(5px); /* Homályos háttér effekt */
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: right;
    }
    
    .nav-links a {
        font-size: 1.4rem;
        padding: 12px 25px;
        color: white;
        text-decoration: none;
        display: inline-block;
        position: relative;
        transition: all 0.3s ease;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.1);
        width: auto;
    }
    
    .nav-links a:hover {
        color: #ffeb3b;
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(-10px);
    }
    
    .nav-links a i {
        margin-right: 10px;
        font-size: 1.2rem;
    }
    
    .nav-links a.active {
        color: #ffeb3b;
        font-weight: bold;
    }

    @media (max-width: 375px) {
        .hero-title {
            font-size: 2.2rem !important;
        }
        
        .hero-subtitle {
            font-size: 1.2rem !important;
        }
        
        .section-title {
            font-size: 1.8rem !important;
        }
        
        .gallery-grid {
            grid-template-columns: 1fr !important;
        }
        
        .contact-card {
            min-width: 100% !important;
        }
        
        .nav-links a {
            font-size: 1.2rem !important;
            padding: 10px 20px !important;
        }
    }
    @media (max-width: 400px) {
        body {
            font-size: 16px !important;
        }
        
        .highlight {
            font-size: 1.1rem !important;
        }
    }
    @media (max-width: 375px) {
        .nav-links li {
            margin: 10px 0 !important;
        }
        
        .nav-links a {
            padding: 8px 15px !important;
        }
        
        .hamburger {
            padding: 10px !important;
        }
    }
    /* iOS input elemek stílusa */
@supports (-webkit-touch-callout: none) {
    input, textarea {
        font-size: 16px !important; /* Megakadályozza a nagyítást iOS-en */
    }
}
    
    /* Animált aláhúzás effekt */
    .nav-links a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 8px;
        right: 25px;
        background-color: #ffeb3b;
        transition: width 0.3s ease;
    }
    
    .nav-links a:hover::after {
        width: calc(100% - 50px);
    }
}