*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body{
    overflow-x: hidden;
}

@font-face{
    font-family: "911 Porscha";
    src: url("fonts/911porschav3.ttf") format("truetype");
}

@font-face{
    font-family: "Inter";
    src: url("fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
}

h2 {
    font-family: "911 Porscha", sans-serif;
}

header{
    background-color: #202020;
    position: static;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    z-index: 9999;
}

.hero{
    background-image: url(img/porsche.png);
    height: 100vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h2{
    text-align: center;
    color: white;
    font-size: 100px;
    transition-duration: 0.5s;
    text-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 15px #000, 0 0 20px #000, 0 0 25px #000;
    pointer-events: none;
}

@media (max-width: 1024px) {
    
    .hero h2{
        font-size: 60px;
        transition-duration: 0.5s;
    }
}

#menu{
    display: flex;
    justify-content: center;
    gap: 70px;
    padding: 20px;
}

#menu ul{
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    padding: 0;
}
            
#menu a{
     text-decoration: none;
    color: white;
    font-family: "Inter", sans-serif;
    transition-duration: 0.3s;
}
            
#menu a:hover{
    text-decoration: none;
    color: lightgray;
    transition-duration: 0.3s;
    transform: scale(1.1);
}
            
            
.hamburger{
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
}
            
@media (max-width: 1024px) {
                
    .hamburger{
        display: block;
    }
                
    #menu{
        display: none;
        flex-direction: column;
        background-color: #202020;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 15px 0;
        text-align: center;
        z-index: 10000;
    }
    
    #menu ul{
        flex-direction: column;
        gap: 20px;
    }
                
}

h1{
    color: white;
}

.btn{
                background-color: white;
                border: 1px solid black;
                padding: 11px 18px;
                border-radius: 10px;
                color: black;
    transition-duration: 0.3s;
            }
            
            .btn:hover{
                transition-duration: 0.3s;
                padding: 13px 21px;
                background-color: #303030;
                color: white;
            }
      
            .container{
                text-align: center;
                font-size: 20px;
                display: flex;
                gap: 10px;
                align-items: center;
                justify-content: center;
                margin-top: 40px;
                height: 550px;
            }
            
            .container > * {
                padding: 20px;
                flex-basis: 1000px;
            }
            
            h3{
                font-size: 60px;
            }
            
            .h{
                padding-bottom: 20px;
            }
            
            .p1{
                font-size: 20px;
                padding-bottom: 30px;
            }

a{
    text-decoration: none;
}

footer{
    height: 400px;
    background-color: #202020;
    color: white;
    text-align: center;
    font-size: 30px;
    margin-top: 60px;
    
}

.p2{
    padding-top: 150px;
}

footer h2{
    padding-top: 150px;
}

#topBtn {
    position: fixed;
            bottom: 30px;
            right: 30px;
            padding: 12px 15px;
            border-radius: 50%;
            background: #303030;
            color: white;
            border: none;
            cursor: pointer;
            display: none;
            z-index: 200;
    transition: opacity 0.3s;
}

.container2{
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 20px;
}

.container2 h1{
    color: black;
    margin-bottom: 60px;
    margin-top: 20px;
}

iframe{
    width: 80%;
    height: 1000px;
}

.error {
      color: red;
      font-size: 14px;
    }

    .container3 input, .container3 textarea, .container3 button {
      display: block;
      width: 300px;
      margin-bottom: 10px;
      padding: 8px;
    }

.container3{
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.container3 h1{
    color: black;
    margin-bottom: 20px;
}

        .gallery{
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
            gap: 20px;
            padding: 150px;
            transition-duration: 0.3s;
        }

.img{
    text-align: center;
}
        
        .gallery img{
            width: 100%;
            display: block;
            object-fit: cover;
            border-radius: 20px;
            transition: 0.9s ease-in-out;
            transform: scale(1.0);
        }
        
        .gallery img:hover{
            transform: scale(1.05);
        }

        @media (max-width: 768px) {
                .gallery {
                    grid-template-columns: 1fr;
                    transition-duration: 0.3s;
                }
            
                .gallery .p3{
                    font-size: 24px;
                }
            
                .gallery .p4{
                    font-size: 12px;
                }
            }

        section {
            margin-bottom: 60px;
        }

        .section-card {
            background: #fff;
            position: relative;
            padding: 100px 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            max-width: 800px;
            margin: 0 auto;
            transition: background 0.3s, color 0.3s;
            margin-bottom: 30px;
        }

.section-card2 {
            background: #fff;
            position: relative;
            padding: 100px 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            max-width: 800px;
            margin: 0 auto;
            transition: background 0.3s, color 0.3s;
            margin-bottom: 30px;
        }

.img h2{
    font-size: 30px;
}

.p3{
    font-size: 30px;
}

.p4{
    font-size: 13px;
    color: dimgray;
}

.gallery h2{
    text-align: center;
    margin-bottom: 40px;
}

.container4{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 60px;
    margin-bottom: 60px;
}

.container5{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 60px;
}

.container6{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.filter-btn{
    margin-top: -80px;
    border-radius: 30px;
    padding: 16px 32px;
    background-color: white;
    border: 1px solid black;
}

.filter-btn:hover{
    padding: 18px 34px;
    transition-duration: 0.3s;
    cursor: pointer;
    background-color: #202020;
    color: white;
}

#search-input{
    padding: 16px 24px;
    width: 25%;
    border-radius: 30px;
    border: 1px solid black;
}

@keyframes fadeIn {
            from{
                transform: translateX(-400px);
                opacity: 0;
            }
            
            to{
                transform: translateX(0px);
                opacity: 1;
            }
        }
            
            
            .prvi{
            opacity: 0;
            animation-name: fadeIn;
            animation-duration: 3s;
            animation-fill-mode: forwards;
            }
            
            .prvi{
                animation-delay: 0s;
            }

.container7{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.img1{
    width: 20%;
    height: 20%;
}

.carouselarrow{
    bottom: 40px;
    right: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s ease, transform 0.2s ease;
    margin-right: 20px;
}

.carousel-dodatno{
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.modal{
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal img{
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}