body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333333;
    padding-right: 200px;
    height: 75px;

    
}

ul li {
    float: right;
    width: 100px;
}

ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 16px 16px;
    text-decoration: none;
    padding-top: 27px;
}

ul li a:hover {
    background-color: #FFD700;
    height: 75px;
    color: black;
}

.facebook {
    position: absolute;
    margin-left: 900px;
    margin-top: 10px;
}

.portfolio-best {
    justify-content: center;
    display: flex;
    flex-direction: row;
    background-color: #FFD700;
    height: 400px; 
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
    padding-left: 200px;

}
    .portfolio-best h1 {
        padding-top: 50px;
        color: #333333;
        font-size: 40px;
    }

    .portfolio-best h3 {
        padding-top: 5px;
        color: #333333;
        top: 170px;

    }

    .portfolio-best button {
        margin-top: 10px;
        width: 150px;
        height: 50px; 
        color: #ffd700;
        background-color: #333333;
        border-radius: 5px;
        cursor: pointer;
    }

    .portfolio-best button:hover{
        background-color: #474545;
        color: white;
    }

    .portfolio-best > img {
        display: flex;
        left: 200px;
        margin-left: 200px;
        margin-top: 40px;
    }



.main-logo {
    padding-left: 200px;
}

.portfolios {
    display: flex;
    position: relative;
    background-color: #333333;
    height: 400px;
    clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 100%);
    margin-top: -100px;;
    
}

.white-container {
  position: absolute;
    top: 375px;                  /* positions it over your angled backgrounds */
    left: 50%;
    transform: translateX(-50%);
    
    width: 80%;
    max-width: 1200px;

    background-color: rgb(241, 230, 230);
    border-radius: 10px;

    z-index: 999;                /* IMPORTANT – sits above all backgrounds */

    min-height: 550px;           /* or 800px / 1000px etc. */
    padding-bottom: 60px;

    display: flex;
    justify-content: center;

}

.web-names {
    display: flex;
    flex-direction: column;
    top: 10px; 
    padding-left: 20px;
    
}

.blend-box1 {
  position: relative; /* important so child abs positioning is relative to this */
  width: 50%;
  overflow: hidden; /* hides any overlap outside the box */
  margin: 10px;
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
}

/* base image (behind) */
.blend-box1 img:first-child {
  width: 100%;
  height: 400px;
  display: block;
  filter: brightness(80%);
  filter: blur(4px); /* optional dim for contrast */
}

/* top image (overlaps) */
.blend-box1 img:last-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  transition: all 0.3s ease;
}

.blend-box1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  transition: height 0.4s ease;
  pointer-events: none; /* lets hover work on image */
}

.blend-box1:hover::after {
  height: 60%; /* how high the shadow climbs */
}

.blend-box1:hover img:last-child {
  transform: translateY(-5px);
}


.site-footer {
  background-color: #333;       /* dark background */
  color: #fff;                  /* white text */
  text-align: center;           /* center text */
  padding: 20px 0;              /* vertical padding */
  font-size: 14px;              /* small font */
  position: relative;
  bottom: 0;
  width: 100%;
  padding-top: 300px;
  height: 220px;
}

.site-footer a {
  color: #ffd700;               /* yellow links for accent */
  text-decoration: none;
  margin: 0 5px;
}

.site-footer a:hover {
  text-decoration: underline;
}


/** Contact Page **/ 

.white-container-contact {
    position: absolute;
    top: 375px;                  /* positions it over your angled backgrounds */
    left: 50%;
    transform: translateX(-50%);
    
    width: 80%;
    max-width: 1200px;

    background-color: rgb(241, 230, 230);
    border-radius: 10px;

    z-index: 999;                /* IMPORTANT – sits above all backgrounds */

    min-height: 550px;           /* or 800px / 1000px etc. */
    padding-bottom: 60px;

    display: flex;
    justify-content: center;
}


.form-container {
    position: absolute; /* overlay over other content */
    top: 50px; /* adjust to move it higher or lower */
      /* center horizontally */
    transform: translateX(-50%); /* perfect horizontal centering */
    background-color:#333333;
    padding: 30px;
    padding-right: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
    z-index: 50; /* make sure it is above everything */
    
}
        .form-container h2 {
            text-align: center;
            margin-bottom: 20px;
            color: #FFD700;
        }
        .form-container input,
        .form-container textarea,
        .form-container button {
            width: 100%;
            padding: 12px;
            margin-bottom: 15px;
            border-radius: 6px;
            border: 1px solid #ccc;
            font-size: 16px;
        }
        .form-container button {
            background-color:#FFD700;
            color: rgb(0, 0, 0);
            border: none;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-left: 15px;
        }
        .form-container button:hover {
            background-color: #2b3b33;
        }

        .site-footer-contact {
            top: 200px;
        }

.contact-container {
    display: flex;
    flex-direction: column;
    width: 400px;
    background-color: #333333;
    margin-left: 600px; 
    height: 85%;
    margin-top: 45px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    
}

.contact-container h2 {
    text-align: center;
    color: #FFD700;
    margin-top: 50px;
}

.details {
    display: flex;
    flex-direction: column;
    color: white;
    margin-left: 30px;

}

.details b {
    font-size: larger;
}

.details a { 
    margin-top: 150px;
    text-align: center;
}

/** About Pag **/ 

.about-container {
    position: absolute; /* overlay over other content */
    top: 50px; /* adjust to move it higher or lower */
      /* center horizontally */
    transform: translateX(-50%); /* perfect horizontal centering */
    background-color:#333333;
    padding: 30px;
    padding-right: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
    z-index: 50; /* make sure it is above everything */
    color: white;
    font-size: 20px;
    
}
    
.about-container-2 {
    display: flex;
    flex-direction: column;
    width: 400px;
    background-color: #333333;
    margin-left: 600px; 
    height: 85%;
    margin-top: 45px;
    margin-right: 20px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color:rgb(241, 230, 230);
    text-align: center;
    align-items: center;
    justify-content: center;
    
}

    .headshot {
        border-radius: 50%;
        filter: contrast(120%) brightness(105%);
    }


/** SERVICES PAGE **/ 

.service1 {
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 600px;
    background-color: #333333;
    margin-top: 40px;
    border-radius: 10px;
    margin-right: 30px;
    text-align: center;
}
    .service1 {
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 600px;
    background-color: #333333;
    margin-top: 40px;
    margin-right: 30px;
    border-radius: 10px;
    text-align: center;
    padding: 20px; /* added padding for spacing */
    box-sizing: border-box; /* ensures padding doesn't increase width */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service1:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.service1 > h1 {
    color: #FFD700;
    margin-bottom: 20px; /* spacing below title */
}

.service1 > h2 {
    color: white;
    margin-bottom: 20px;
}

.service1 ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
}

.service1 li {
    font-size: 18px;
    color: white;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid #FFD700;
}

.service1 li:last-child {
    border-bottom: none; 
}

.service2 {
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 600px;
    background-color: #333333;
    margin-top: 40px;
    border-radius: 10px;
    margin-right: 30px;
    text-align: center;
}
    .service2 {
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 600px;
    background-color: #333333;
    margin-top: 40px;
    margin-right: 30px;
    border-radius: 10px;
    text-align: center;
    padding: 20px; /* added padding for spacing */
    box-sizing: border-box; /* ensures padding doesn't increase width */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.service2 > h1 {
    color: #FFD700;
    margin-bottom: 20px; /* spacing below title */
}

.service2 > h2 {
    color: white;
    margin-bottom: 20px;
}

.service2 ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
}

.service2 li {
    font-size: 18px;
    color: white;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid #FFD700;
}

.service2 li:last-child {
    border-bottom: none; 
}

.service3 {
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 600px;
    background-color: #333333;
    margin-top: 40px;
    border-radius: 10px;
    margin-right: 30px;
    text-align: center;
}
    .service3 {
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 600px;
    background-color: #333333;
    margin-top: 40px;
    margin-right: 30px;
    border-radius: 10px;
    text-align: center;
    padding: 20px; /* added padding for spacing */
    box-sizing: border-box; /* ensures padding doesn't increase width */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service3:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.service3 > h1 {
    color: #FFD700;
    margin-bottom: 20px; /* spacing below title */
}

.service3 > h2 {
    color: white;
    margin-bottom: 20px;
}

.service3 ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
}

.service3 li {
    font-size: 18px;
    color: white;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid #FFD700;
}

.service3 li:last-child {
    border-bottom: none; 
}


/* ===========================
   MOBILE RESPONSIVE FIXES
   =========================== */

@media (max-width: 768px) {

    /* NAV BAR */
    ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        gap: 10px;
    }

    ul img.main-logo {
        width: 150px;
        height: auto;
    }

    ul li a {
        font-size: 18px;
    }

    .facebook {
        width: 30px;
        height: auto;
    }

    /* HERO SECTION */
    .portfolio-best {
        display: flex;
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 40px 20px;
    }

    .portfolio-best img {
        width: 150px;
        height: auto;
        margin-top: 20px;
    }

    .best-align h1 {
        font-size: 26px;
        line-height: 32px;
    }

    .best-align h3 {
        font-size: 16px;
        padding: 0 10px;
    }

    .portfolio-best button {
        width: 80%;
        margin-top: 15px;
        padding: 12px;
        font-size: 18px;
    }

    /* PORTFOLIO BOXES */
    .white-container {
        padding: 20px;
    }

    .blend-box1 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .p-1 {
        width: 100%;
        height: auto;
    }

    .logo-1 {
        width: 60%;
        height: auto;
        margin-top: 10px;
    }

    .web-names h3 {
        font-size: 20px;
        text-align: center;
        margin-top: 10px;
    }

    /* FOOTER */
    .site-footer {
        text-align: center;
        padding: 20px;
    }

    .footer-content p {
        font-size: 14px;
    }
}