/* ==========================================================
   YBR DIGITAL SOLUTIONS LIMITED
   Main Stylesheet
   Author: Bruno Leunens
   ========================================================== */

/* ---------- CSS VARIABLES ---------- */

:root {

    --yellow: #FFD200;
    --black: #111111;
    --red: #D40000;

    --light: #f5f5f5;
    --white: #ffffff;

    --text: #2c2c2c;

    --shadow: 0 10px 30px rgba(0,0,0,.12);

    --radius: 12px;

    --transition: .35s ease;

}

/* ---------- RESET ---------- */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;
    color:var(--text);
    background:#efefef;
    overflow-x:hidden;

    /* Soft wallpaper feel */

    background:
        radial-gradient(circle at top right,
        rgba(255,255,255,.9),
        rgba(240,240,240,.92) 35%,
        rgba(230,230,230,.96) 100%);

    min-height:100vh;

    position:relative;

}

/* --------------------------------------------------
   LEFT YBR STRIPES
---------------------------------------------------*/

body::before{

    content:"";

    position:fixed;

    left:4px;
    top:0;

    width:70px;
    height:100%;

    background:
        linear-gradient(to right,

        var(--black) 0 22px,

        var(--yellow) 22px 46px,

        var(--red) 46px 70px);

    z-index:-1;

}

/* --------------------------------------------------
   BOTTOM YBR STRIPE
---------------------------------------------------*/

body::after{

    content:"";

    position:fixed;

    left:0;
    bottom:0;

    width:100%;
    height:48px;

    background:
        linear-gradient(to bottom,
        var(--black) 0 8px,
        var(--yellow) 8px 16px,
        var(--red) 16px 24px,
        var(--black) 24px 32px,
        var(--yellow) 32px 40px,
        var(--red) 40px 48px);
    z-index:-1;

}

/* --------------------------------------------------
   HEADER
---------------------------------------------------*/

header{

    position:sticky;

    top:0;

    z-index:999;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px 50px 20px 110px;

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(8px);

    box-shadow:0 2px 15px rgba(0,0,0,.05);

}

/* --------------------------------------------------
   LOGO
---------------------------------------------------*/

.logo img{

    height:70px;

    transition:var(--transition);

}

.logo img:hover{

    transform:scale(1.05);

}

/* --------------------------------------------------
   HAMBURGER
---------------------------------------------------*/

.menu-container{

    position:relative;

}

#hamburger{

    border:none;

    background:none;

    font-size:32px;

    cursor:pointer;

    color:var(--black);

    transition:.3s;

    display:flex;

    flex-direction:column;

    align-items:center;

}

#hamburger span{

    opacity:0;

    font-size:12px;

    transition:.3s;

    margin-top:2px;

}

#hamburger:hover span{

    opacity:1;

}

/* --------------------------------------------------
   MENU
---------------------------------------------------*/

nav{

    position:absolute;

    right:0;

    top:65px;

    background:white;

    border-radius:10px;

    box-shadow:var(--shadow);

    min-width:220px;

    display:none;

    overflow:hidden;

}

nav a{

    display:block;

    padding:18px;

    text-decoration:none;

    color:var(--black);

    transition:.3s;

    font-weight:500;

}

nav a:hover{

    background:var(--yellow);

}

nav a.active{

    background:var(--black);

    color:white;

}

/* --------------------------------------------------
   HERO
---------------------------------------------------*/

.hero{

    min-height:420px;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:50px;

}

.hero-text{

    max-width:800px;

}

.hero h1{

    font-size:3.3rem;

    color:var(--black);

    margin-bottom:20px;

}

.hero p{

    font-size:1.25rem;

    color:#666;

    margin-bottom:35px;

}

/* --------------------------------------------------
   BUTTON
---------------------------------------------------*/

.button{

    display:inline-block;

    text-decoration:none;

    background:var(--yellow);

    color:black;

    padding:15px 35px;

    border-radius:40px;

    font-weight:600;

    transition:.35s;

}

.button:hover{

    background:var(--red);

    color:white;

    transform:translateY(-3px);

}

/* --------------------------------------------------
   SLIDESHOW
---------------------------------------------------*/

.slideshow-section {
    display:flex;
    justify-content:center;
    width:100%;
}

.slideshow {
    width: fit-content;
    max-width: 80%;
    max-height: 750px;

    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    overflow: hidden;
    position: relative;
    margin: auto;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 750px;
    object-fit: contain;
}

@media(max-width:900px){

    .slideshow {
        width: 94%;
        max-width: 94%;
        max-height: none;
    }

    .slide.active {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
        object-fit: contain;
    }

}


@media(max-width:600px){

    .slideshow {
        width: 90%;
        max-width: 90%;
        height: auto;
    }

    .slide.active {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
        object-fit: contain;
    }

}

/* --------------------------------------------------
   WELCOME
---------------------------------------------------*/

.welcome{

    max-width:1100px;

    margin:auto;

    padding:60px;

    text-align:center;

}

.welcome h2{

    font-size:2.2rem;

    margin-bottom:25px;

}

.welcome h3{

    margin-top:25px;

}

.welcome p{

    line-height:1.9;

    font-size:1.1rem;

}

/* --------------------------------------------------
   SERVICES
---------------------------------------------------*/

.services-text{

    max-width:1100px;

    margin:auto;

    padding:20px;

    text-align:center;

}

.services-text h2{

    font-size:2.2rem;

    margin-bottom:10px;

}
.services{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

    padding:50px;

    max-width:1300px;

    margin:auto;

}

.card{

    background:white;

    padding:35px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    transition:.35s;

}

.card:hover{

    transform:translateY(-10px);

}

.card h3{

    color:var(--black);

    margin-bottom:15px;

}

.card::before{

    content:"";

    display:block;

    width:70px;

    height:6px;

    background:linear-gradient(to right,

    var(--yellow),

    var(--red));

    margin-bottom:20px;

}

/* --------------------------------------------------
   INFORMATION RIBBON
---------------------------------------------------*/

.info-ribbon{

    margin-top:80px;

    background:var(--yellow);

    color:black;

    min-height:380px;

    padding:60px;

}

.info-ribbon h2{

    margin-bottom:30px;

}

.info-ribbon p{

    margin-bottom:12px;

    font-size:1.05rem;

}

/* --------------------------------------------------
   CONTACT FORM
---------------------------------------------------*/

form{

    max-width:800px;

    margin:auto;

}

input,
textarea{

    width:100%;

    padding:15px;

    margin-bottom:20px;

    border:1px solid #ccc;

    border-radius:8px;

    font-family:Poppins;

}

textarea{

    resize:vertical;

    min-height:180px;

}

button{

    font-family:Poppins;

}

/* --------------------------------------------------
   FOOTER
---------------------------------------------------*/

footer{

    padding:35px;

    text-align:center;

    color:#666;

    font-size:.95rem;

}

/* --------------------------------------------------
   BACK TO TOP
---------------------------------------------------*/

#topButton{
  position:fixed;
  right:25px;
  bottom:35px;
  width:55px;
  height:55px;
  border:none;
  border-radius:50%;
  background:var(--black);
  color:white;
  cursor:pointer;
  font-size:22px;
  transition:.3s;
  box-shadow:var(--shadow);
  display:none;
  align-items:center;
  justify-content:center;
}

#topButton:hover{

    background:var(--red);

}

/* --------------------------------------------------
   FADE IN ANIMATION
---------------------------------------------------*/

.card,
.hero,
.welcome,
.slideshow{

    animation:fadeIn .8s ease;

}

@keyframes fadeIn{

    from{

        opacity:0;
        transform:translateY(30px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/* --------------------------------------------------
   RESPONSIVE
---------------------------------------------------*/

@media(max-width:900px){

header{

    padding:20px;

}

body::before{

    width:30px;

}

.hero h1{

    font-size:2.3rem;

}

.hero{

    padding:30px;

}

.slideshow{

    width:94%;
    height:auto;

}

.services{

    padding:20px;

}

.welcome{

    padding:30px;

}

}

@media(max-width:600px){

.logo img{

    height:50px;

}

.hero h1{

    font-size:1.8rem;

}

.hero p{

    font-size:1rem;

}

.slideshow{

    width:90%;
    max-width:90%;
    height:auto;

}

header{

    padding:15px;

}

}
