@import url('https://fonts.googleapis.com/css2?family=Nabla&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: Arial, sans-serif;
    z-index: 0;
    color: white;
    margin: 0;
    
    background-image: url(tausta1.jpg);
        background-size: cover;
    background-position: center;
    background-repeat: no-repeat;  
    background-attachment: fixed;  
    
    
}


body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.4);
    z-index: -1; 
}
html {
    scroll-behavior: smooth;
}

h1 {
    text-align: center;
    font-family: "Nabla", system-ui;
    font-size: 30px;
}

h2 {
    font-family: "Nabla", system-ui;
    font-size: 50px;
}



.container {
    max-width: 1650px;
    margin: auto;
    padding-top: 40px;
}

.kategoria {
    margin-bottom: 30px;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 35px;
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(145deg, #f7f7f7);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

.logo {
    color: #FFE761;
    margin: 0;
    font-size: 28px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgb(226, 154, 47);
}

.nav-links {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 16px;
    border-radius: 10px;
    transition: 0.25s ease;
    position: relative;
}

.nav-links a:hover {
    color: #FFE761;
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.nav-links a::after {
    position: absolute;
    left: 15%;
    bottom: 6px;
    width: 0%;
    height: 2px;
    background: #FFE761;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 70%;
}

.valikko {
    position: relative;
}

.valikko-content {
    display: none;
    position: absolute;
    top: 115%;
    left: 0;
    min-width: 220px;
    padding: 10px;
    border-radius: 10px;
    z-index: 10;

    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);

    animation: fadeDown 0.25s ease;
}

.valikko:hover .valikko-content {
    display: block;
}

.valikko-content a {
    display: block;
    padding: 12px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

.valikko-content a:hover {
    background: rgba(255,248,189,0.08);
    color: #FFE761;
    padding-left: 18px;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.tausta {
    height: 900px;
    width: 100%;
    background-image: url(tausta2.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}



.hero-box {
    flex: 1;
    background: rgba(0,0,0,0.65);
    padding: 20px;

    backdrop-filter: blur(8px);
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
    height: 98%;
    
}


.left-box {
    text-align: center;
}

.right-box img {
    
    max-width: 100%;
    
}

.left-box p, h3 {
    font-size: 24px;
    margin-top: 60px;
    text-align: left;
    margin-left: 100px;
      font-family: "Roboto Condensed", sans-serif;
}

.left-box h3 {

font-family: "Nabla", system-ui;
font-size: 60px;
margin-left: 90px;


}

.left-box p {

font-size: 35px;
margin-top: 100px;

}

.right-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.right-box p {
    font-size: 22px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.secondary {
    background: white;
}

.secondary:hover {
    box-shadow: 0 0 20px white;
}

.tausta-overlay p {
    font-size: 22px;
    margin-bottom: 15px;
}

.cta {
    display: inline-block;
    padding: 12px 25px;
    background: #FFE761;
    color: black;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
    margin-left: -520px;
    font-size: 20px;
}

.cta:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #b4b3a9;
}

.tuote img {
    width: 80%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.floating {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.floating img {
    width: 120px;
    animation: float 4s ease-in-out infinite;
}

.floating.left {
    left: 40px;
    position: bottom;
    margin-top: 50px;
}

.floating.right {
    right: 50px;
}

@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

#floating-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}



@keyframes floatAnim {
    0%   { transform: translateY(0px) rotate(0deg); }
    50%  { transform: translateY(-25px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.tuotteet {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.tuote {
    background: linear-gradient(145deg, #292929, #111);
    padding: 15px;
    border-radius: 12px;
     width: 220px;
    min-height: 420px;
    text-align: center;
    border: 1px solid #222;
    transition: 0.3s ease;
    overflow: hidden;
    position: relative;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
}

.tuote img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 8px;
    transition: 0.3s;
}

.tuote:hover {
    transform: translateY(-8px) scale(1.06);
    border-color: #FFE761;
    box-shadow: 0 0 20px #FFF8BD;
}

.lisatiedot {
    max-height: 0;
    opacity: 0;
    font-size: 12px;
    color: #aaa;
    transition: 0.3s ease;
}

.tuote:hover .lisatiedot {
    max-height: 120px;
    opacity: 1;
    margin-top: 10px;
}

h5 {
    font-size: 60px;
    font-family: "Nabla", system-ui;
}



.reviews,
.info-section,
.newsletter {
    max-width: 1300px;
    margin: 80px auto;
    padding: 30px;
}

.review-box {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #000000;
}

.review-box p {
    font-size: 18px;
    margin-bottom: 10px;
}

.review-box span {
    color: #aaa;
}

.info-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.info-card {
    flex: 1;
    min-width: 250px;
    background: #1a1a1a;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #000000;
}

.newsletter {
    text-align: center;
}

.newsletter input {
    padding: 14px;
    width: 280px;
    border: none;
    border-radius: 10px;
    margin-right: 10px;
}

.newsletter button {
    padding: 14px 22px;
    border: none;
    border-radius: 10px;
    background: #FFE761;
    font-weight: bold;
    cursor: pointer;
}



.tuote button {
    width: 100%;
    margin-top: auto;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background-size: cover;
    background-color: #000000;
    background-repeat: no-repeat;  
   
    color: rgb(255, 255, 255);
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    transition: 0.25s ease;
    z-index: 2;

}

.tuote button:hover {
    transform: scale(1.04);
    box-shadow: 0 0 15px rgba(255,248,189,0.45);
    
}


.tuote button:active {
    transform: scale(0.97);
}




.tuote p {
    font-size: 22px;
    color: #FFE761;
    font-weight: bold;
    margin: 10px 0;
}


.varasto {
    color: #7dff7d;
    font-size: 13px;
    margin-top: 6px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-info {
    font-size: 14px;
    color: #000000;
}

.nav-cart {
    background: #FFE761;
    color: black !important;
    padding: 10px 14px !important;
    border-radius: 10px;
    font-weight: bold;
}

.nav-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,248,189,0.4);
}

@media (max-width: 1100px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-right {
        justify-content: center;
    }
}


.nav-search {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
    margin-right: 15px;
}

.nav-search input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 11px 14px;
    width: 220px;
    font-size: 14px;
}

.nav-search input::placeholder {
    color: #aaa;
}

.nav-search button {
    border: none;
    background: #FFE761;
    color: black;
    padding: 11px 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: 0.25s ease;
}

.nav-search button:hover {
    background: white;
    transform: scale(1.03);
}


@media (max-width: 1100px) {
    .nav-search {
        width: 100%;
        max-width: 420px;
        margin-right: 0;
    }

    .nav-search input {
        width: 100%;
    }
}


@media (max-width: 1000px) {
    .tausta-overlay {
        flex-direction: column;
        width: 95%;
    }

    .left-box img {
        width: 260px;
    }

    .right-box h3 {
        font-size: 28px;
    }

    .right-box p {
        font-size: 18px;
    }
}

.navtoinen {
    display: flex;
    justify-content: center;
    align-items: center;
    
    position: sticky;
    z-index: 1;
    background: #E71C28;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    text-align: center;
}


h3 {

margin-left: 0;
font-size: 30px;

}



footer {
   
    text-align: center;
    background-color: #222222;
    color: #cfcfcf;
    max-width: 100%;
    padding: 30px;
}


.vasenf {

text-align: left;



}


.oikeaf {

text-align: right;


}


