*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
}

header{
    position: absolute;
    top: 0;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 50px;
    background: transparent;
}


header a{
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

header img{
    width: 100px;
    opacity: 0.7;
}
.hero{
    height: 100vh;

    background-image:
        linear-gradient(rgb(0, 0, 0, 1),
                        rgba(0,0,0,0.3)),
        url("images/cutting-scaled-1.jpg");

    background-size: cover;
    background-position: center;

    color: white;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero h1{
    font-size: 48px;
    margin-bottom: 20px;
    color: rgb( 250, 235, 215);
}

.hero p{
    font-size: 24px;
    margin-bottom: 30px;
    color: rgb( 250, 235, 215);;
}

.hero button{
    padding: 10px 30px;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.125);
    color: rgb( 250, 235, 215);
    border-color: rgba(248, 243, 243, 0.884);
    cursor: pointer;
    animation: pulse 2s infinite;
    -webkit-animation: pulse 2s infinite;
}

.hero button:hover{
    background: #555;
}

.gold{
    color: #ba7c1e;
    font-weight: bold;
}

.hero a{
    color: rgb( 250, 235, 215);
    text-decoration: none;
}

.work{
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
    text-align: center;
    color: white;
}

.work-video{
    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    min-width: 100%;
    min-height: 100%;

    object-fit: cover;
    z-index: 0;
}

.work-overlay{
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.4),
        rgba(0,0,0,0.85)
    );

    z-index: 1;
}

.work-content{
    position: relative;
    z-index: 2;
}

.logo_work{
    width: 100px;
    opacity: 0.5;
}

.work h2{
    display: inline-block;
    font-family: 'franklin gothic medium', 'arial narrow bold', Arial, sans-serif;
    background: rgba(0, 0, 0, 0.011);
    padding: 12px 30px;
    border-radius: 10px;

    margin-bottom: 60px;
    font-size: 34px;
}

.gallery{
    display: flex;
    justify-content: center;
    gap: 25px;

    flex-wrap: nowrap;
}

.gallery img{
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* Animation */

.slide1,
.slide2,
.slide3{
    opacity:0;
    transform:translateX(100px);
    animation:slideIn 1.5s forwards;
    -webkit-animation:slideIn 1.5s forwards;
}

.slide2{
    animation-delay:0.7s;
}

.slide3{
    animation-delay:1.30s;
}

@keyframes slideIn{
    from{
        opacity:0;
        transform:translateX(100px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }
}

.services{
    padding: 100px 20px;
    background: hsl(0, 27%, 2%);
    color: white;
    text-align: center;
}

.services h2{
    font-family: 'franklin gothic medium', 'arial narrow bold', Arial, sans-serif;
    background: rgba(0, 0, 0, 0.011);
    padding: 12px 30px;
    border-radius: 10px;

    margin-bottom: 60px;
    font-size: 34px;
}

.logo_services{
    width: 80px;
    opacity: 0.5;
}

.services-carousel{
    display: flex;
    gap: 20px;

    overflow-x: auto;
    padding-left: 40px;
    padding-right: 40px;

    scroll-snap-align: center;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;

    justify-content: flex-start;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.services-carousel::-webkit-scrollbar{
    display: none;
}

.service-card{
    min-width: 250px;
    min-height: 200px;
    flex-shrink: 0;

    background: rgba(255,255,255,0.05);
    padding: 35px;
    border-radius: 15px;

    scroll-snap-align: center;
    transition: 0.3s ease;
}

.line{
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.2);

    margin: 10px 0 15px 0;
}

.services-carousel.active{
    cursor: grabbing;
}


.service-card:hover{
    transform: scale(1.05);
    background: rgba(255,255,255,0.1);
}

.services-carousel.few{
    justify-content: center;
    overflow-x: hidden;
}

.services-carousel.many{  /* Use this when there are a lot of services */
    justify-content: flex-start;
    overflow-x: auto;
}

.contact{
    background: #0f0f0f;
    padding: 100px 20px;
    text-align: center;
    color: white;
}

.map-container{
    max-width: 900px;
    margin: 50px auto;

    border-radius: 12px;
    overflow: hidden;

    position: relative;

    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


.map-btn{
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 12px 20px;

    background: #ba7c1e;
    color: black;
    font-weight: bold;
    text-decoration: none;

    border-radius: 8px;
}

.map-btn:hover{
    background: #d9a15c;
}

.map-dark-overlay{
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.45);

    z-index: 1;
    pointer-events: none;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(186, 124, 30);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
}
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
}
}

/*Mobile responsiveness*/

@media (max-width: 768px){

    .hero{
        height: 90vh;   /* full phone screen */
        background-size: cover;
        background-position: 50%, 20%; /* keeps haircut area visible */
        padding-top: 90px;
    }



    .hero h1{
        font-size: 32px;
        text-align: center;
    }

    .hero p{
        font-size: 18px;
        text-align: center;
    }

        header{
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    header img{
        width: 80px;
    }

    .gallery{
        gap: 15px;
        flex-wrap: wrap;
    }

    .gallery img{
        width: 100%;
        height: 300px;
    }

        .service-card{
        min-width: 80%;
    }

    .services-carousel{
        padding: 20px;
    }

        .map-container iframe{
        height: 300px;
    }

    body{
        overflow-x: hidden;
    }
}