/* ===== FONTS ===== */
@font-face {
    font-family: 'Univers';
    src: url('font/univers/UniversCnRg.ttf') format('truetype');
}

@font-face {
    font-family: 'Sabon';
    src: url('font/sabon/Sabon.ttf') format('opentype');
}

html {
    scroll-behavior: smooth;
}




/* ===== GLOBAL STYLES ===== */


.section {
    padding: 80px 10%;
    max-width: 1200px;
    margin: auto;
}
body{
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f8f8;
    
      
}

/* ===== HEADER & NAVIGATION ===== */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    color: black;
    border: solid 1px black ;
    background-color: white;
    opacity: 80%;
}



.nav-links {
    list-style: none;
    display: flex;
    gap: 50px; 
}

.nav-links li a {
    text-decoration: none;
    font-size: 20px;
    color: black;
    font-weight:normal;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: #f5a623;
}

/* ===== HAMBURGER MENU (MOBILE) ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 13%;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
}

/* ===== HERO SECTION ===== */
#hero {
    text-align: center;
    padding: 30px;
    font-family: 'Ysabeau', sans-serif;
}

#hero h1 {
    text-align: center;
    font-size: 54px;
    padding-top: 120px;
}

#hero img {
    width: 500px;
    margin-top: -50px;
    margin-bottom: -30px;
}

#hero h2 {
    font-size: 64px;
    margin-bottom: 30px;
}

/* ===== ABOUT SECTION ===== */
#about {
    background-image: url('images/backphoto.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    color: black; 
    padding-right: 80px; 
}

.aboutme {
    max-width: 40%; 
    text-align: left; 
    font-family: 'Ysabeau', sans-serif;
}

.aboutme h1 {
    margin-bottom: 50px; 
    margin-right: 0; 
    padding-right: 0; 
    font-size: 42px; 
}

.aboutme p {
    font-size: 18px;
    line-height: 1.9; 
    word-wrap: break-word; 
}
/*===== project2 sect====*/

.gallery {
    width: 100%;
    font-family: 'Ysabeau', sans-serif;
}

.gallery h1 {
    text-align: center;
    font-size: 60px;
    margin: 35px 0 0;
}
.gallery-container{
    align-items: center;
    display: flex;
    height: 500px;
    margin: 0 auto;
    max-width: 1000px;
    position: relative;
}
 .gallery-item {
    height: 200px;
    opacity: 0;
    position: absolute;
    transition: all 0.3s ease-in-out;
    width: 330px;
    z-index: 0;
    border-radius: 15px;
    background-size: contain;
 }
 .gallery-item-1{
    left: 15%;
    opacity: .4;
    transform: translateX(-50%);
 }
 .gallery-item-2, .gallery-item-4 {
    height: 250px;
    opacity: 0.8;
    width: 380px;
    z-index: 1;
 }
 .gallery-item-2{
    left: 30%;
    transform: translateX(-50%);
 }

 .gallery-item-3 {
    box-shadow: -2px 5px 33px 6px rgba(0,0,0,0.35);
    height: 300px;
    opacity: 1;
    left: 50%;
    transform: translateX(-50%);
    width: 430px;
    z-index: 2;
 }
 .gallery-item-4 {
    left: 70%;
    transform: translateX(-50%);

 }

.gallery-item-5{
    left: 85%;
    opacity: .4;
    transform: translateX(-50%);
}
.gallery-controls{
    display: flex;
    justify-content: center;
    margin: 15px 15px 0;
    height: 100px;
   
}
.gallery-controls button {
    background-color: transparent;
    border: 0;
    cursor: pointer;
    font-size: 30px;
    margin: 0 50px;
    padding: 0 12px;
    text-transform: capitalize;
}

.gallery-controls-button:focus {
    outline: none;
}
.gallery-controls-previous {
    position: relative;
}
.gallery-controls-previous::before {
    border: solid #000;
    border-width: 0 5px 5px 0;
    content: '';
    display: inline-block;
    height: 5px;
    left: -30px;
    padding: 10px;
    position: absolute;
    top: 25%;
    transform: rotate(135deg) translateY(-50%);
    transition: left 0.15s ease-in-out;
    width: 5px;
}
.gallery-controls-previous:hover::before {
    left: -40px;
}
.gallery-controls-next {
    position: relative;
}
.gallery-controls-next:before{
    border: solid #000;
    border-width: 0 5px 5px 0;
    content: '';
    display: inline-block;
    height: 5px;
    padding: 10px;
    position: absolute;
    right: -30px;
    top: 45px;
    transform: rotate(-45deg) translateY(-50%);
    transition: right 0.15s ease-in-out;
    width: 5px;
}
.gallery-controls-next:hover:before{
    right: -40px;
}
.gallery-nav {
    bottom: -15px;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    position: absolute;
    width: 100%;

}
.gallery nav li {
    background: #ccc;
    border-radius: 50%;
    height: 10px;
    margin: 0 16px;
    width: 10px;

}
.gallery-nav li.gallery-item-selected{
    background: #555;
}



#contact {
        text-align: center;
        padding: 80px 20px;
        margin: 45px  0;
        max-width: 100%;

    }

#contact h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 50px;
    font-family: 'Ysabeau', sans-serif;

}

#contact p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-item span {
    font-size: 22px;
    font-weight: bold;
    color: black;
}

.contact-item p {
    font-size: 18px;
    padding: 8px 12px;
   margin-bottom: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.contact-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.contact-links img {
    width: 40px;
    height: 40px;
}

.contact-links a:hover {
    transform: scale(1.1);
}
footer {
   
    color: #555;
}



/* ===== HAMBURGER MENU (Mobile) ===== */
@media (max-width: 375px) {
    nav {
        border: none; /* Usuwa border */
        background: transparent; /* Usuwa tło */
    }
    /* Ukrywamy navbar na telefonach */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        justify-content: center;
        align-items: center;
        text-align: center;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex; /* Pokazujemy menu po kliknięciu w hamburgera */
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 24px;
        color: black;
        text-decoration: none;
    }

    .nav-links a:hover {
        color: #f5a623;
    }

    /* Hamburger w prawym rogu */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        position: fixed;
        right: 20px;
        top: 20px;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 30px;
        height: 3px;
        background: black; /* Możesz zmienić na biały */
        transition: 0.3s;
    }

    /* Animacja otwartego hamburgera */
    .hamburger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
