/*==========================================Animations=============================*/

.hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0); 
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/*================================Page Layout=======================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #0a0d0e !important;
    height: 100%;
}

body {
    margin: 0;
    height: 100%;
}

/*==============================Header============================================*/

/*for when scrolling at top*/
.header {
    position: relative;
    top: 0;
    background-color: black;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    height: 100px;
}

.phone-number {
    font-size: 16px;
    font-weight: bold;
    color: #bd9568; /* Change to match your theme */
    padding: 10px 15px;
    display: flex;
    justify-content: center;
}

.phone-number a {
    text-decoration: none;
    color: #bd9568;
    margin: auto;
    font-size: 1.2rem;
}

.phone-number a:hover {
    color: #f0a500; /* Highlight color on hover */
}

.nav {
    height: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    color: #bd9568;
    list-style-type: none;
    
}

.nav-item {
    text-decoration: none;
    font-size: 1.4rem;
    margin: auto 0.5em;
    animation: fadeIn 1.2s ease-in-out;
    animation-delay: calc(0.3s * var(--i));
    opacity: 0;
    animation-fill-mode: forwards;
    cursor: pointer;
}

.header-logo{
    animation: slideIn 1.5s ease-in-out;
    cursor: pointer;
}

.nav-item:hover {
    text-decoration: underline;
}

/*for when scrolling not at top*/
.header-scrolled {
    animation: 1.5s ease-in-out;
    z-index: 9999;
    background-color: black;
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    height: 100px;
}

/*for smaller screens*/

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #bd9568;
    position: absolute;
    left: 10px;
    top: 10px;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* Hide the sidebar off-screen */
    width: 250px;
    height: 100%;
    background-color: black;
    transition: left 0.3s ease;
    padding-top: 50px;
    z-index: 1000;
}

.sidebar-logo {
    display: block;
    margin: 0 auto 20px;
    width: 80%;
    cursor: pointer;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    padding: 15px 20px;
    color: #bd9568;
    font-size: 1.4rem;
    cursor: pointer;
    border-bottom: 1px solid #bd9568;
}

.sidebar-nav li:hover {
    background-color: #1f1f1f;
}

/* Show Hamburger on Smaller Screens */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    /* Hide default nav on smaller screens */
    .nav {
        display: none;
    }
    
    /* Shrink header height when not at the top */
    .header-scrolled {
        height: 60px;
    }
}

/*=========================About Us Section========================================*/
.about-us{
    background-color: #0a0d0e;
}

.banner {
    background-image: url("./images/Banner.jpg");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
    background-repeat: no-repeat;
    position: relative;
    animation: fadeIn 1s ease-in-out;
}

.about-us-title {
    width: 90%;
    text-align: center;
    color: white;
    font-size: 4rem; 
    position: absolute;
    left: 50%; 
    bottom: 75%;
    transform: translateX(-50%);
    margin: 0;
}

@media screen and (max-width: 600px) {
    .about-us-title {
        font-size: 2rem;
    }
    
}

.about-us-section-text{
    border: groove #bd9568 10px;
    background-color: black;
}

.about-us-section-title{
    color: #bd9568;
    text-align: center;
    font-size: 2.5em;
}

.about-us-section-description{
    color: wheat;
    text-align: center;
    font-size: 1.5em;
    padding: 1rem;
}

.about-us-section-image{
    width: 90%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ======================================Fabrication===================================== */
.fabrication{
    background-color: black;
}

.fabrication-brands-banner{
    overflow: hidden;
    background-color: black;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.harley-davidson-logo, .triumph-logo, .mazda-logo, .suzuki-logo, .bsa-logo, .norton-logo{
    max-width: calc(100% / 4);
    object-fit: scale-down;
}

.fabrication-text{
    border: groove #bd9568 10px;
    padding-top: 1em;
    padding-bottom: 1em;
}

.fabrication-title{
    font-size: 4em;
    text-align: center;
    color: #bd9568;
    margin: auto;
}

.fabrication-subtitle{
    font-size: 1.5em;
    text-align: center;
    color: wheat;
    margin: auto;
}

.fabrication-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem auto;
    max-width: 1200px;
}

.card {
    background-color: #1f1f1f;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card p {
    line-height: 1.6; 
    font-size: 1.1rem;
}

.bigger-cards{
    background-color: black;
    padding-bottom: 1.5em;
}

@media screen and (max-width: 768px) {
    .fabrication-section {
        grid-template-columns: 1fr; 
    }
    .card {
        grid-column: auto;
        transform: translateX(0);
    }
}

.fabrication-text{
    background-color: black;
}

.fabrication-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem auto;
    max-width: 1200px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0a0d0e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card img {
    width: 60px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.card-content {
    text-align: center;
}

.card h3 {
    margin-bottom: 1rem;
    color: #537595;
}

.card ul {
    list-style-type: none;
    padding: 0;
}

.card ul li {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
}

.card ul li i {
    margin-right: 10px;
    color: #ff9800; /* Icon color */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Responsiveness */
@media screen and (max-width: 768px) {
    .fabrication-section {
        grid-template-columns: 1fr;
    }
}

.welding {
    width: 95%;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #0a0d0e;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.welding-content {
    max-width: 50%;
    padding: 20px;
}

.welding-title {
    font-size: 2.5rem;
    color: #bd9568;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-align: left;
}

.welding-description {
    font-size: 1.2rem;
    color: #eaeaea;
    line-height: 1.6;
}

.welding-image {
    max-width: 45%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.welding b {
    color: #bd9568;
}

@media screen and (max-width: 768px) {
    .welding {
        flex-direction: column;
        text-align: center;
    }

    .welding-content {
        max-width: 100%;
        padding: 0;
    }

    .welding-image {
        max-width: 100%;
        margin-top: 20px;
    }

    .welding-title {
        text-align: center;
    }
}

.parts {
    width: 95%;
    margin-top: 1.5rem;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; /* Center-align since no image */
    padding: 20px;
    background-color: #0a0d0e;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.parts-content {
    max-width: 100%;
    padding: 20px;
    text-align: center; /* Center text since no image */
}

.parts-title {
    font-size: 2.5rem;
    color: #bd9568;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.parts-description {
    font-size: 1.2rem;
    color: #eaeaea;
    line-height: 1.6;
    margin-bottom: 20px;
}

.scroll-btn {
    background-color: #bd9568;
    color: white;
    padding: 10px 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.scroll-btn:hover {
    background-color: #d4a876;
}

@media screen and (max-width: 768px) {
    .parts {
        flex-direction: column;
        text-align: center;
    }

    .parts-content {
        max-width: 100%;
    }

    .parts-title {
        text-align: center;
    }
}


/*========================Projects=================================================*/

.project-text{
    background-color: black;
    padding-top: 1em;
    padding-bottom: 1em;
    border: groove #bd9568 10px;
}

.project-title{
    text-align: center;
    color: #bd9568;
    font-size: 3em;
}

.project-card-holder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid layout */
    gap: 20px;
    padding: 40px;
    background-color: #0a0d0e; /* Matches color scheme */
}

.project-card {
    position: relative;
    overflow: hidden;
    background-color: #1b1f21;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px); /* Lift on hover */
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
}

/*Project card Modal*/
.image-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark semi-transparent background */
}

.image-modal .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.image-modal .close:hover {
    color: #bd9568;
}
/*End of Modal*/

.project-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-image {
    transform: scale(1.1); /* Subtle zoom on hover */
}

.project-card-info {
    padding: 20px;
    color: #eaeaea;
    text-align: center;
}

.project-card-title {
    font-size: 1.8rem;
    color: #bd9568;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #cfcfcf;
}

@media screen and (max-width: 768px) {
    .project-card-info {
        padding: 10px;
    }

    .project-card-title {
        font-size: 1.5rem;
    }

    .project-card-description {
        font-size: 0.9rem;
    }
}

/*===================================Contact===================================*/

.contact-section {
    background-color: #0a0d0e;
    color: #eaeaea;
    padding: 50px;
    text-align: center;
}

.contact-title {
    font-size: 2.5rem;
    color: #bd9568;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #cfcfcf;
}

/* Phone number in contact section */
.contact-section .phone-number {
    font-size: 18px;
    font-weight: bold;
    color: #bd9568;
    margin-bottom: 10px;
}

.contact-section .phone-number a {
    text-decoration: none;
    color: #bd9568;
}

.contact-section .phone-number a:hover {
    color: #f0a500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #bd9568;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #1b1f21;
    color: #eaeaea;
    font-size: 1rem;
}

.form-group textarea {
    resize: none;
    height: 150px;
}

.submit-btn {
    padding: 12px 20px;
    font-size: 1.2rem;
    background-color: #bd9568;
    color: #0a0d0e;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #a77951;
}

@media screen and (max-width: 768px) {
    .contact-form {
        padding: 0 20px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .submit-btn {
        width: 100%;
    }
}

/*======================footer===============================================*/

footer.footer {
    background-color: black;
    color: #eaeaea;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo {
    width: 150px; 
    height: auto;
    cursor: pointer;
}

.footer-center {
    text-align: center;
    flex-grow: 1;
}

.footer-copyright {
    font-size: 1rem;
    margin: 0;
    color: #bd9568;
}

.footer-tribute {
    padding-left: 0.2rem;
    font-size: 1rem;
    margin: 0;
    color: #cfcfcf;
}

.footer-left, .footer-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 768px) {
    footer.footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-left {
        margin-bottom: 15px;
    }
}