@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
    background: #fff;
    color: #000;
    overflow-x: hidden;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  /*  padding: 15px 30px;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9998;
    transition: background 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.9);
}

header.hide {
    transform: translateY(-100%);
    opacity: 0;
}

header .logo img {
    height: 45px;
    padding: 15px 30px;
}

/* NAVIGATION */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-right: 30px;
}

nav a {
    color: #f1c40f;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #fff;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 9999;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #f1c40f;
    transition: 0.4s;
}

/* Animált X ikon */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}



/* HERO */
#hero {
    height: 100vh;
    background: url('img/hero-excavator.webp') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 20px;
}

.hero-text h1 {
    font-size: 64px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px black;
}

.hero-text p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px black;
}

.hero-button {
    background: #f1c40f;
    color: black;
    padding: 12px 25px;
    font-weight:900;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.hero-button:hover {
    background: #d4ac0d;
}


/* SECTIONS */
.container {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
    overflow-x: hidden;
}


h2 {
    color: #f1c40f;
    margin-bottom: 20px;
}

h2 {
    background: #f1c40f;      
    color: #000;              
    padding: 10px;            
    border-left: 20px solid #000; 
    margin-bottom: 20px; 
    border-radius: 6px;
}

#about p {
    text-align: justify;
}

/* GALLERY */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    border-radius: 5px;
    /*border: 3px solid #000;*/
    border: 3px #ccc solid;
    object-fit: cover;
}

/* Kapcsolat szekció konténer */
.contact-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
    overflow: hidden;
}

/* Bal oldali szöveg */
.contact-text {
    flex: 1;
}

/* Az li  stílusa  */
.contact-text ul li {
    list-style: none;
    background: #555;
    color: #f1c40f;
    padding: 15px;
    border-left: 5px solid #f1c40f;
    border-radius: 6px;
    margin-bottom: 20px;
}

.contact-text ul li a {
    text-decoration: none;
    color: #f1c40f;
}

.contact-text ul li a:hover {
    color: #fff;
}

.contact-text ul li span {
    font-weight: 900;
}


/* Jobb oldali kép */
.contact-image img {
    width: 100%;
    max-width: 400px;
    border: 1px #ccc solid;
    border-radius: 3px;
    display: block;
}


/* FOOTER */
footer {
    background: #000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;   
    padding: 20px;
}

footer p {
    font-weight: 900;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #f1c40f;
}

/* BACK TO TOP */
#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #f1c40f;
    color: #000;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#backToTop.show {
    display: block;
    opacity: 1;
}

/* SCROLL-TRIGGER ANIMÁCIÓK */
.scroll-fade,
.scroll-up,
.scroll-left,
.scroll-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

/* Egyedi induló pozíciók */
.scroll-up {
    transform: translateY(40px);
}

.scroll-left {
    transform: translateX(-40px);
}

.scroll-right {
    transform: translateX(40px);
}

.scroll-fade {
    transform: translateY(20px);
}

/* Amikor láthatóvá válik */
.visible {
    opacity: 1;
    transform: translate(0, 0);
}


/* MOBILE MENU */
@media (max-width: 768px) {
    htnl, body {
        overflow-x: hidden;
        overflow-y: hidden;
    }
    nav ul {
        position: fixed;
        top: 62px;
        right: 0;
        background: #000;
        /*background: rgba(0, 0, 0, 0.2);*/
        width: 200px;
        padding: 20px;
        display: none;
        flex-direction: column;
        z-index: 9997;
    }
    nav ul li {
        padding: 10px;
    }
    nav ul.show {
        display: flex;
        margin-right: 0px;
    }

    .hamburger {
        display: flex;
        right: 30px;
        /*justify-content: flex-end;*/
        position: fixed;
    }

       .hero-text h1 {
        font-size: 36px;
    }
    
    #hero {
    background: url('img/mobil/hero-excavator.webp') center/cover no-repeat;
    }

    .hero-text p {
        font-size: 18px;
    }

    .hero-button {
        padding: 10px 20px;
        font-size: 16px;
    }

     .contact-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-text {
        padding-left: 0;
        margin: auto;
    }

    .contact-text ul {
        padding: 0;
    }

    .contact-text ul li {
        text-align: center;
        max-width: 100%;
        width: 100%;
        /*border-left: none;*/
        border-radius: 6px;
        margin: 20px auto;
    }

    .contact-image img {
        max-width: 100%;
        width: 100%;
        margin-top: 20px;
    }

    footer
    {
        padding: 20px 50px;
        flex-direction: column;
        text-align: center;
    }

}