*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}
.hero{
   
   width: 100%;
    min-height: 100vh;
    background-color: #f6f2f2;
    background-image:
        linear-gradient(rgba(246, 242, 242, 0.7), rgba(246, 242, 242, 0.7)),
        url('image/hero-background.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 0;
    overflow: hidden;
    

}
nav{
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5%;
    width: 100%;
background-color: #000000;
background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(124, 115, 115, 0.7) );
}
.logo-link{
    display: block;
    transition: transform 0.2s;
}
.logo-link:hover{
    transform: scale(1.05);
}
.logo{
    display: block;
    width: 120px;
    height: auto;
    border-radius: 30px;
}
nav ul{
    display: flex;
    list-style: none;
    gap: 30px;
    

}
 
 a{
    color: #fefcfc;
    text-decoration: none;
}
.auth{
    display: flex;
    gap: 15px;
}

.login-btn{
    background-color: hsl(0, 0%, 0%);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    background-image: linear-gradient(45deg, #e41818, #6e0202, #ff0808
    );
}

.register-btn{
    background-color: #f1f1f1;
    color: #000000;
    padding: 10px 20px;
    border: 2px solid #c88686;
    border-radius: 30px;
    cursor: pointer;
    margin: 0;
    background-image: linear-gradient(45deg, #bd9797, #d7aaaa, #e2d1d1);
}
.marquee-container{
 width: 100%;
 overflow: hidden;
 padding: 10px 0;
 background-color: #ff0808;
 background-image: linear-gradient(45deg, #e41818, #6e0202, #ff0808);
}
.marquee{
 display: flex;
 gap: 100px;
 width: max-content;
 font-size: 40px;
 line-height: 1.2;
 font-family: Arial, sans-serif;
 color:#fff8f8;
 text-transform: uppercase;
 white-space: wrap;
 animation: marquee 10s linear infinite;
}
@keyframes marquee {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100%);
    }
}
.hero-row{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 200px 5% 100px;
}
/* frosted white card behind the hero text */
.content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    padding: 45px;
    border-left: 6px solid #ff0808;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-family: Arial, sans-serif;
    color: #222;
}
.hero-image{
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.btn{
    display: inline-block;
    margin-top: 50px;
    padding: 20px 32px;
    border-radius: 30px;
    background-color: #ff0808;
    background-image: linear-gradient(45deg, #e41818, #6e0202, #ff0808);
    color: #fff;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* small black badge above the heading */
.tagline{
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 16px;
    border-radius: 30px;
    background-color: #000;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.content h1{
    margin-bottom: 20px;
    font-family: "Idiqlat", serif;
    font-size: 60px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #111;
}
/* fills the word "hair" with the red gradient */
.highlight{
    background-image: linear-gradient(45deg, #e41818, #6e0202, #ff0808);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.content p{
    margin-bottom: 25px;
    font-size: 20px;
    line-height: 1.6;
    color: #444;
}
/* checklist with red tick circles */
.features{
    list-style: none;
}
.features li{
    position: relative;
    margin-bottom: 12px;
    padding-left: 32px;
    font-size: 17px;
    font-weight: bold;
}
.features li::before{
    content: "\2713";
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #e41818;
    color: #fff;
    font-size: 13px;
}
/* two buttons side by side */
.hero-buttons{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}
.hero-buttons .btn{
    margin-top: 15px;
}
.btn-outline{
    border: 2px solid #111;
    background-image: none;
    background-color: transparent;
    color: #111;
    box-shadow: none;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}
.btn-outline:hover{
    background-color: #111;
    color: #fff;
}
/* =================== footer =================== */
footer{
    background-color: #000000;
    background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(60, 0, 0, 0.9));
    border-top: 4px solid #ff0808;
    color: #fff;
    font-family: Arial, sans-serif;
}
.footer-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding: 50px 5%;
}
.footer-content{
    flex: 1;
    min-width: 200px;
}
.footer-content h3{
    margin-bottom: 15px;
    color: #ff0808;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-content ul{
    list-style: none;
}
.footer-content li{
    margin-bottom: 10px;
}
.footer-content a:hover{
    color: #ff0808;
}
.footer-logo{
    width: 120px;
    margin-bottom: 15px;
}
.footer-bottom{
    padding: 20px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 14px;
    color: #bbb;
}

/* =================== other pages =================== */
/* highlights the page you're on, and links you hover, in the nav */
nav ul a:hover,
nav ul a.active{
    color: #ff0808;
}

/* smaller version of the home page hero */
.page-hero{
    background-color: #f6f2f2;
    background-image:
        linear-gradient(rgba(246, 242, 242, 0.85), rgba(246, 242, 242, 0.85)),
        url('image/hero-background.jpg');
    background-position: center;
    background-size: cover;
}
.page-title{
    padding: 80px 5%;
    text-align: center;
    font-family: Arial, sans-serif;
}
.page-title h1{
    font-size: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #111;
}
.page-title p{
    margin-top: 10px;
    font-size: 20px;
    color: #333;
}

/* main area of each page */
.page-main{
    padding: 60px 5%;
    background-color: #f6f2f2;
    font-family: Arial, sans-serif;
    color: #222;
}
.page-main a:not(.btn){
    color: #6e0202;
    font-weight: bold;
}
.section{
    margin-bottom: 70px;
}
.section-title{
    margin-bottom: 30px;
    font-size: 36px;
    text-align: center;
    text-transform: uppercase;
}
.section-title.left{
    text-align: left;
}

/* cards (services + barbers) */
.card-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
}
.card{
    padding: 30px;
    border-top: 5px solid #ff0808;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.card.center{
    text-align: center;
}
.card h3{
    margin-bottom: 10px;
    font-size: 22px;
    text-transform: uppercase;
}
.card p{
    line-height: 1.6;
    color: #555;
}
.price{
    display: block;
    margin-top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #e41818;
}
.barber-photo{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-image: linear-gradient(45deg, #e41818, #6e0202);
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    overflow: hidden;
}

/* real photo inside the circle; zoomed in so the barber's face fills it.
   each photo gets its own class below to aim the zoom at the face */
.barber-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transform: scale(1.8);
}

/* scale = how far to zoom in, transform-origin = where to zoom (left/right, up/down) */
.barber-photo .photo-miguel{
    transform-origin: 55% 25%;
}

.barber-photo .photo-mario{
    transform: scale(1.3);
    transform-origin: 0% 10%;
}

.barber-photo .photo-jose{
    transform: scale(1.6);
    transform-origin: 5%s 150%;
}

.barber-photo .photo-rene{
    transform: scale(1.8);
    transform-origin: 52% 38%;
}

.barber-photo .photo-brandon{
    transform: scale(1.6);
    transform-origin: 65% 35%;
}

/* about page story */
.about-text{
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
}
.about-text p + p{
    margin-top: 20px;
}

/* red banner with a button (walk ins / now hiring) */
.cta{
    padding: 50px 5%;
    border-radius: 20px;
    background-image: linear-gradient(45deg, #e41818, #6e0202, #ff0808);
    color: #fff;
    text-align: center;
}
.cta h2{
    margin-bottom: 10px;
    font-size: 36px;
    text-transform: uppercase;
}
.cta .btn{
    background-image: none;
    background-color: #000;
}

/* contact page */
.contact-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 50px;
}
.info-list{
    list-style: none;
}
.info-list li{
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.6;
}
.info-list strong{
    display: block;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #e41818;
}
.contact-form{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-form label{
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}
.contact-form input,
.contact-form textarea{
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus{
    outline: none;
    border-color: #e41818;
}
.contact-form .btn{
    align-self: flex-start;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* =================== home page slide in =================== */
.hero-row .content{
    animation: slide-in-left 1s ease-out both;
}
.hero-row .hero-image{
    animation: slide-in-right 1s ease-out 0.3s both;
}
@keyframes slide-in-left{
    from{
        opacity: 0;
        transform: translateX(-100px);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slide-in-right{
    from{
        opacity: 0;
        transform: translateX(100px);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
}
/* turns the animation off for people who set "reduce motion" on their device */
@media (prefers-reduced-motion: reduce){
    .hero-row .content,
    .hero-row .hero-image{
        animation: none;
    }
}

/* =================== mobile menu button =================== */
/* hidden on computers, shown on tablets and phones (see below) */
.menu-toggle{
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

/* =================== tablets (1024px and smaller) =================== */
@media (max-width: 1024px){
    .content h1{
        font-size: 48px;
    }
    .hero-row{
        padding: 80px 5% 50px;
    }
}

/* =================== menu switches to the ☰ button (900px and smaller) =================== */
@media (max-width: 900px){
    nav{
        flex-wrap: wrap;
    }
    .logo{
        width: 90px;
    }
    .menu-toggle{
        display: block;
    }
    /* links and buttons are hidden until the menu is opened */
    nav ul,
    .auth{
        display: none;
        width: 100%;
    }
    nav.open ul{
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-top: 15px;
    }
    nav.open ul a{
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        font-size: 18px;
    }
    nav.open .auth{
        display: flex;
        padding: 15px 0 10px;
    }
    .auth a{
        flex: 1;
        text-align: center;
    }
}

/* =================== hero stacks: text on top, image below (800px and smaller) =================== */
@media (max-width: 800px){
    .content,
    .hero-image{
        flex-basis: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

/* =================== phones (600px and smaller) =================== */
@media (max-width: 600px){
    .content{
        padding: 28px 22px;
    }
    .content h1{
        font-size: 34px;
    }
    .content p{
        font-size: 18px;
    }
    .btn-outline{
        padding: 10px 22px;
    }
    .hero-row{
        padding: 40px 5%;
    }
    .marquee{
        font-size: 22px;
        gap: 50px;
    }
    .page-title{
        padding: 50px 5%;
    }
    .page-title h1{
        font-size: 36px;
    }
    .page-title p{
        font-size: 17px;
    }
    .page-main{
        padding: 40px 5%;
    }
    .section-title,
    .cta h2{
        font-size: 26px;
    }
    .cta{
        padding: 35px 20px;
    }
    .btn{
        padding: 12px 24px;
    }
    .contact-form .btn{
        align-self: stretch;
        text-align: center;
    }
    .footer-container{
        text-align: center;
    }
}
