* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

:root {
    --red: #bd1400;
    --sub: #dd1a04;
    --ter: #f54254;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #040406;
    color: #fff;
}

#header {
    width: 100%;
    height: 100vh;
    background-size: 44%;
    background-repeat: no-repeat;
    background-position: 75%;
    background-image: url(images/JohnSullivan-MaicolPhotography-Website.png);
}

.container {
    padding: 1vh 10vw;

}

.container .logo {
    padding: 5px;
    width: 140px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 1vw 2vh;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0%;
    height: 3px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    content: '';
    width: 100%;
    height: 3px;
    background: var(--red);
    position: absolute;
    left: 0;
    bottom: -6px;
}

.header-text {
    margin-top: 30vh;
    font-size: 2vw;
}

.downloads {
    justify-content: left;
    margin-top: 1%;
    display: flex;
    gap: 10px;
}

.btn_basic1 {
    padding: 14px 30px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--sub);
    background-color: #000;
    color: var(--sub);
    font-size: 18px;
    transition: 0.5s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn_linkedin i {
    font-size: 35px;
    /* Increase the LinkedIn icon size */
}

.btn_linkedin {
    padding: 7px 30px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--sub);
    background-color: #000;
    color: var(--sub);
    font-size: 18px;
    transition: 0.5s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn_linkedin:hover {
    transform: translateY(5px);
    color: #000;
    background-color: var(--red);
}

.btn_basic1:hover {
    transform: translateY(5px);
    color: #000;
    background-color: var(--red);
}

.header-text h1 {
    margin-top: 20px;
    font-size: 60px;
}

.header-text h1 span {
    color: var(--red);
}

#about {
    padding: 20px 0;
    color: #ababab;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;  /* Consistent space between columns */
}

.col-1, .col-2 {
    flex-basis: calc(50% - 10px);  /* Adjust the width to account for the gap */
    max-width: calc(50% - 10px);   /* Maintain the same max-width */
}

.slider-container {
    margin-top: 10vh;
}

.slider-wrapper {
    position: relative;
    max-width: 45rem;
    margin: 0 auto;
}

.slider {
    display: flex;
    aspect-ratio: 16 / 9;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    box-shadow: 0 150% 300% -75% hsla(0, 0%, 0%, 0.25);
    border-radius: 5px;
    -ms-overflow-style: none;
    /* Hide scrollbar IE and Edge */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    scroll-snap-stop: always;
}


.slider img {
    flex: 1 0 100%;
    scroll-snap-align: start;
    object-fit: cover;
}

.slider-nav {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 90%;
    /* Adjust this value to position vertically */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    /* Ensure it's on top of the slider content */
    gap: 10px;
    /* Adjust the spacing between dots */
}

.slider-nav a {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.70;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.slider-nav a.active {
    background-color: var(--red);
    transform: scale(1.5);
    opacity: 1;
}

.slider-nav a:hover {
    opacity: 1;
}

.col-2 {
    flex-basis: 52%;
}

.subtitle {
    font-size: 3vw;
    font-weight: 600;
    color: #ffffff;
}

.text {
    font-size: 1vw;
    font-weight: 300;
}

.tab-titles {
    display: flex;
    margin: 2vh 0 1.8vw;
}

.tab-links {
    margin-right: 2vw;
    font-size: 1.05vw;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0%;
    height: 3px;
    background: var(--red);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents-all {
    border-radius: 10px;
    background-color: #181717;
    padding: 7px 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 32vh;
    overflow-x: hidden;
}

.tab-contents ul li {
    font-size: 1.8vh;
    margin: 10px 0;
    line-height: 24px;
    color: #ffffff;
    font-weight: 400;
}

.extra {
    margin-bottom: 1vh;
}

.tab-contents ul li span {
    color: var(--ter);
    font-size: 2.25vh;
    font-weight: 600;
}

.tab-contents ul li span.footer {
    font-size: 2.25vh;
    color: #ffffff;
    margin: 100px 0;
    font-weight: 400;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 40px;
}

.work {
    border-radius: 10px;
    position: relative;
    max-height: 750px;
    overflow: hidden;
    display: block;
    transition: 0.5s;
}

.cluster {
    border-radius: 10px;
    width: 100%;
}

.layer {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), #ff000079);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    line-height: 1.5;
    font-size: 14;
}

.layer h3 {
    font-weight: 600;
    margin-top: 3.5vh;
    font-size: 1vw;
}

.layer a {
    position: absolute;
    width: 100%;
    height: 100%;
}

.layer img {
    width: 15%;
    height: auto;
}

.layer p {
    padding-bottom: 11px;
    font-size: 1vw;
}

.work:hover {
    transform: scale(1.1);
}

#contact {
    padding-top: 50px;
}

.contact-left {
    flex-basis: 40%;
}

.contact-right {
    flex-basis: 56%;
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 10px;
    resize: none;
}

.contact-text {
    padding-top: 10px;
    padding-bottom: 20px;
    font-size: 1vw;
    color: #ababab;
    font-weight: 300;
}

#msg {
    color: #61b752;
    padding-top: 30px;
    display: block;
}

.mail {
    font-size: 18px;
    font-weight: 300;
    padding-right: 5%;
    display: inline-flex;
    justify-content: right;
}

.mail i {
    color: var(--red);
    padding-right: 10px;
    padding-bottom: 20px;
}

.socials a {
    color: var(--red);
    font-size: 50px;
    text-decoration: none;
}

.socials {
    transition: 0.5s;
}

.socials:hover {
    color: var(--sub);
    transform: translateY(-5px);
}

.socials p {
    font-size: 1.4vw;
    color: #fff;
    display: inline-flex;
    justify-content: center;
    margin-left: 15px;
    position: relative;
    top: -10px;
}

.btn_basic2 {
    width: fit-content;
    border: 1px solid var(--red);
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--red);
    background-color: #000;
    transition: 0.5s;
}

.btn_basic2:hover {
    background-color: var(--red);
    color: #fff;
    transform: translateY(-5px);
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #181717;
    font-weight: 300;
    margin-top: 30px;
}

/* ------ cs small screns ------ */
nav .fa-solid {
    display: none;
}

@media only screen and (max-width: 600px) {
    #header {
        background-image: url('images/phone-background.png');
        width: 100%;
        height: 100vh;
        margin-bottom: -120px;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }

    .header-text {
        margin-top: 50vh;
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 30px;
    }

    nav .fa-solid {
        display: block;
        font-size: 25px;
    }

    nav ul {
        background: #bd1400;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    .slider-wrapper {
        max-width: 20rem;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fa-solid {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .btn_basic1 {
        padding: 14px 30px;
        border-radius: 10px;
        text-decoration: none;
        border: 1px solid var(--sub);
        background-color: #000;
        color: var(--sub);
        font-size: 4vw;
        transition: 0.5s;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .col-1, .col-2 {
        flex-basis: 100%;
        margin-bottom: 20px;  /* Adjust the width to account for the gap */
        max-width: 100%;   /* Maintain the same max-width */
    }

    .row {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0px;
    }

    .subtitle {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .text {
        font-size: 14px;
        line-height: 1.5;
    }

    .tab-titles {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .tab-links {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 16px;
    }

    .tab-links.active-link::after {
        width: 100%;
    }

    .tab-contents ul li span {
        font-size: 18px;
    }

    .tab-contents ul li {
        line-height: 20px;
        font-size: 14px;
    }

    .tab-contents.active-tab {
        margin-top: 10px;
    }

    .layer h3 {
        font-size: 15px;
    }

    .layer p {
        padding-bottom: 3px;
        font-size: 11px;
    }
    
    .layer img {
        width: auto;
        max-width: 20%;
        height: auto;
        object-fit: contain;
    }

    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }

    .socials p {
        font-size: 18px;
    }
    
    .contact-text {
        padding-top: 10px;
        padding-bottom: 20px;
        font-size: 18px;
        color: #ababab;
        text-decoration: none;
        font-weight: 300;
    }
    
    .mail {
        font-size: 18px;
        font-weight: 300;
        padding-right: 5%;
        display: inline-flex;
        justify-content: right;
        text-decoration: none;
        color: #ffffff; /* Ensure the text color is visible */
    }
    
    .mail a {
        text-decoration: none; /* Ensure links do not have an underline */
        color: #ffffff; /* Ensure link color matches */
        display: inline-block; /* Change to inline-block */
    }
    
    .slider img {
        max-width: 100%;
        height: auto;
        justify-content: center;
    }
    
    .slider-wrapper {
        display: flex;
        justify-content: center; /* Center the slider wrapper */
        margin: 0 auto; /* Center it horizontally */
    }
    
    .slider {
        aspect-ratio: 4 / 3;  /* Adjust as needed for better scaling */
        align-items: center; /* Center vertically */
    }
}