*{
    margin: 0;
    padding: 0;
    font-family: "Sans serif","Monospace";
    box-sizing: border-box;
    
}
body{
    background: linear-gradient(rgba(20,20,20,0.7), rgba(0,0,0,0.8)), url("./backgroundimages/serviceback.png") center/cover no-repeat;    background-size: cover;
    background-attachment: fixed;    min-height: 100vh;
    color: white;
}
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6); /* initial */
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    transition: 0.3s ease;
}
header.scrolled {
    background: rgba(0, 0, 0, 0.9); /* darker on scroll */
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.main{                      
    display: flex;
    justify-content: space-between;
    align-items: center;                  
    max-width: 1200px;   
    margin: auto;         

}
.logo img{                
    width: 200px;  
    height:auto; 
}
img{
    width: 100%;
    height: 100%;
    object-fit:contain;
    padding: 5px;
    align-items: center;
  }
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}
ul{
    display: flex;
    gap: 20px;
    margin: 0;
    list-style-type: none; 
    float: right; 
    margin-top: 25px;
    font-size: 1.5rem;
}
ul li{
    display: inline;
}
ul li a{
    text-decoration: none;  
    color: rgb(193, 41, 41);      
    padding: 5px 20px;                    
    border-radius: 5rem;           
    transition: 0.6s ease;       
}
ul li a:hover{   
    background-color: rgb(245, 249, 250);            
    color: rgb(14, 14, 14);                
}
ul li.active a{                         
    background-color: rgb(193, 41, 41);        
    color: white;     
}
ol li a:visited{                      
    color: whitesmoke; 
    transition: 0.6s ease;
}
.service-card{
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 30px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    transition: 0.4s ease;
    backdrop-filter: blur(10px);
}

.service-card::before{
    content: "";
    position: absolute;
    inset: 0;
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 0;
}

.service-card *{
    position: relative;
    z-index: 1;
}

.icon{
    font-size: 2rem;
    margin-bottom: 10px;
}
.service-card:hover{
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.services .card{
    opacity: 0;
    transform: translateY(40px);
}

.services.show .card{
    opacity: 1;
    transform: translateY(0);
}

.services.show .card:nth-child(1){ transition-delay: 0.1s; }
.services.show .card:nth-child(2){ transition-delay: 0.2s; }
.services.show .card:nth-child(3){ transition-delay: 0.3s; }
.services.show .card:nth-child(4){ transition-delay: 0.4s; }
.services.show .card:nth-child(5){ transition-delay: 0.5s; }
.services.show .card:nth-child(6){ transition-delay: 0.6s; }
.services.show .card:nth-child(7){ transition-delay: 0.7s; }
.services.show .card:nth-child(8){ transition-delay: 0.8s; }
.services.show .card:nth-child(9){ transition-delay: 0.9s; }

.service-card::after{
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(45deg, rgb(193,41,41), transparent);
    opacity: 0;
    z-index: -1;
    transition: 0.4s;
}

.service-card:hover::after{
    opacity: 1;
}
.service-card h3{
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.service-card p{
    font-size: 0.9rem;
    opacity: 0.85;
}
.s1 { background-image: url("./servicesimages/product1.jpg"); }
.s2 { background-image: url("./servicesimages/product2.jpg"); }
.s3 { background-image: url("./servicesimages/product3.jpg"); }
.s4 { background-image: url("./servicesimages/product4.jpg"); }
.s5 { background-image: url("./servicesimages/product5.jpg"); }
.s6 { background-image: url("./servicesimages/product6.jpg"); }
.s7 { background-image: url("./servicesimages/product7.jpg"); }
.s8 { background-image: url("./servicesimages/product8.jpg"); }
.s9 { background-image: url("./servicesimages/product9.jpg"); }

.section{
    min-height: 100vh;
    padding: 140px 5% 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section h2{
    font-size: 3rem;
    color: rgb(193,41,41);
    margin-bottom: 10px;
}

.subtitle{
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}
.card {
    background-color: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    transition: 0.4s ease;
}
.card:hover {
    transform: translateY(-10px) scale(1.03);
}
h6 {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}
.box1 {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


 /* FOOTER */
.footer{
    padding:50px 5% 20px;
}
.footer-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:30px;
}
.footer-col h4{
    color:rgb(193,41,41);
    margin-bottom:10px;
}
.footer-col ul{
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem; 
    margin-right: 150px;
}
.footer-col a{
    display: inline-block;
    padding: 6px 14px;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}
.footer-col a:hover {
    background: white;
    color: black;
}
.footer-bottom{
    text-align:center;
    margin-top:20px;
    opacity:0.7;
}


/* MOBILE */
@media (max-width: 768px){

    .menu-toggle{
        display: block;
        z-index: 1100;
    }
    ul{
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;

        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(10px);

        flex-direction: column;
        align-items: center;

        display: none;
        padding: 20px 0;
        z-index: 1000;
    }

.footer-col ul{
        margin-right: 150px;
}
    ul.active{
        display: flex;
    }
    ul li{
        margin: 10px 0;
    }
    .hero h1{
        font-size: 2.5rem;
    }

    .hero h2{
        font-size: 1rem;
    }
    .section{
        padding: 80px 5%;
    }

    .grid{
        grid-template-columns: 1fr;
    }
    .footer{
        text-align: center;
    }

    .footer-container{
        grid-template-columns: 1fr;
        gap: 20px;
    }
}