:root {
    /*--background-color: #f5f5f5; */
    /*--text-color: #333; */
    --primary-color: #ff7f24; 
    --secondary-color: #ff6d00;
    --background-color: #121212;
    --text-color: #ffffff;
    --header-bg-color: #1f1f1f;
    --button-hover-bg: #ff9f33;
    --hover-grow-scale: 1.05; 
    --current-color: #9494948a;
    --dark-light: #1f1f1f;
    --default: #1f1f1fd7;
}

* {
    user-select: none;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    display: none; 
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

main {
    padding:106px 0px 106px 20px;
}

header {
    z-index: 1;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    border-radius: 2px;
    border-bottom: 2px solid var(--primary-color);
    top: 0;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    padding: 15px 0px 2px 20px;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.hero {
    position: relative;
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    text-shadow: 0px 0px 40px rgba(0,0,0,1);
}

.hero h1 {
    color: var(--primary-color);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.services {
    padding: 4rem 0;
    /*background-color: var(--background-color);*/
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-grid img {
    border-radius: 30px;
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.clients {
    padding: 4rem 0;
    /*background-color: var(--background-color);*/
    overflow: hidden;
}

.clients h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.client-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.client-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.client-slide {
    flex: 0 0 20%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.client-logo {
    background-color: var(--background-color);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.client-slide img {
    height: 140px;
    width: 100%;
    object-fit: contain;
}

footer {
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 109, 0,0.7);
    color: #fff;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.social-icons a img {
    width: 30px;
    height: auto;
    margin: 0 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/*
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #121212;
    z-index: -1;
}
*/
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('/media/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}




.space-y-32 > * + * {
    margin-top: 8rem;
}
.space-y-4 > * + * {
    margin-top: 1rem;
    margin-left: 2rem;
}
.space-y-4 h2{
    text-align: center;
}
.space-y-4 {
    background-color: #1f1f1fd7;
    border-radius: 20px;
}
.text-4xl {
    text-align: center;
    font-size: 2.25rem;
    line-height: 2.5rem;
    text-shadow: 0px 0px 20px rgba(0,0,0,1);
}
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}
.rounded-lg {
    border-radius: 0.5rem;
}
.grid {
    display: grid;
    gap: 5rem;
    margin-left: 20px;
}
.md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.paska-p {
    margin-left: 20px
}


.contact-grid {
    margin-left: 20px;
    background-color: var(--default);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-left: 2rem;
    padding-bottom: 2rem;
    padding-top: 1px;
}


.text-primary {
    color: var(--primary-color);
}
.bg-dark {
    background-color: var(--background-color);
}

.text-light {
    color: var(--text-color);
}
.icon {
    width: 24px;
    height: 24px;
}
.card {
    
    display: flex;
    width: 550px;
    background-color: var(--default);
    border-radius: 8px;
    /*box-shadow: inset -9px 10px 0px 0px rgb(192 91 31);*/
    padding: 2rem;
    padding-right: 1rem;
}
a[href^="mailto:"] {
    color: white; 
    text-decoration: none;
  }
.flex{
    user-select: text;
}

.image {
    margin-left: 10px;
    border-radius: 100%;
    border-color: rgb(255, 192, 203);
}

.items-center {
    align-items: center;
}

.about-section h2{
margin-top: 12px;
}

.about-section{
    background-color: #1f1f1fd7;
    border-radius: 20px;
    padding: 1px;
    padding-left: 10px;
    padding-top: -10px;
}

.service-section,
.about-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;

    box-sizing: border-box;
}

.service-section.visible,
.about-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.email{
    font-size: 3rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 20px;
    margin-bottom: 0.55rem;
    margin-right: 0.55rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar a {
    margin: 0.5rem 0;
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
}

.navbar.show {
    display: flex;
}

@media (max-width: 768px) {

    main{
        padding: 0px;
        padding-right: 20px;
        padding-left: 20px;
        padding-top: 106px;
        padding-bottom: 106px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
    .client-slide {
        flex: 0 0 100%;
    }

    .logo img {
        height: 40px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 1rem;
    }



    .navbar {
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--header-bg-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 8px 8px;
        padding-top: 1rem;
        padding-bottom: 1rem;
        z-index: 1000;
        width: 100%;
        overflow: hidden;
    }
    
    .rounded-lg img {
        max-width: 100%;
        height: auto;
    }
    .text-4xl {
        font-size: 1.5rem;
        line-height: 1.8rem;
        word-wrap: break-word;
        text-align: center;
        margin: 0 auto;
        margin-top: 1rem;
    }


    .text-lg {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    .space-y-4 {
        height: auto;
        padding: 1rem;
    }

    .space-y-4 > * {
        margin-top: 1rem; 
        margin-left: 0px;
    }
    .space-y-2{
        margin-left: -13px;
    }
    /* order-1 tekstin ylivuodon korjaus */
    .order-1 {
        height: auto;
        padding: 1rem; 
        display: flex;
        flex-direction: column;
        justify-content: center; 
    }

    .order-2 {
        height: auto; 
    }

    .client-slider{
        display: grid;
        gap: 2rem;
        margin-top: 1.25rem;
    }
    .clients h2 {
        text-shadow: 0px 0px 7px rgba(0,0,0,1);
        font-size:  1.79rem;
    }

    
    .navbar ul {
        flex-direction: column;
    }

    .navbar ul li {
        text-align: center;
        margin: 10px 0;
    }

    .hamburger {
        display: flex;
    }
    .nav-links {
        display: none; 
    }

    /*contact bage style="box-shadow: inset -9px 10px 0px 0px rgb(192 91 31);"*/
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; 
        margin-left: 0; 
    }
    .email{
        font-size: 2rem;
    }
    .contact-grid {
        margin-left: 0;
        padding-left: 0;
        padding-top: 1rem
    }
    .card {
        display: grid; 
        width: 85%;
    }
}



/*
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .space-y-32 > * + * {
        margin-top: 4rem;
    }
}

@media (max-width: 768px) {
    .main{
        padding: 106px, 20px, 106px, 20px;
    }

    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .client-slider {
        flex-direction: column;
        align-items: center;
    }
}
*/