:root{
    --accent: #ff0114f;
	--accent: #0096FF;
	--accent: #89CFF0;
	
}
*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
html{
    /* keep the page width the same whether or not a scrollbar is needed, so nothing shifts when the filter changes */
    scrollbar-gutter: stable;
}
body{
    background: #080808;
    color: #fff;
}
#header{
    width: 100%;
    //background-image: url(images/background.png);
    //background-size: cover;
    //background-position: center;
}
.container{
    padding: 10px 10%;
}
#header .container{
    padding-bottom: 0;
}

#navbar{
    position: fixed;
    background: #080808;
    top: 0;
    left: 0;
    right: 0;
    padding-top: 5px;
    padding-right: 5%;
    padding-left: 5%;
    z-index: 1;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    
}
.logo{
    width: 140px;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: var(--accent);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after{
    width: 100%;
}

/* -------------about---------------- */
#about{
    padding: 0px 0;
    color: #ababab;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.about-col-1{
    flex-basis: 35%;
}
.about-col-1 img{
    width: 100%;
    border-radius: 15px;
}
.about-col-2{
    flex-basis: 60%;
}
.sub-title{
    font-size: 60px;
    font-weight: 600;
    color:whitesmoke;

}
.about-me-text{
    font-size: 20px;
    font-weight: 600;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: #fff;
}
.tab-titles{
    display: flex;
    margin: 20px 0 40px;

}
.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: var(--accent);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 50%;
}
.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
}
.tab-contents ul li span{
    color: var(--accent);
    font-size: 14px ;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;
}


#education ul li.education-entry {
    margin-bottom: 18px;
    line-height: 1.3;
}

#education .education-entry p {
    margin: 0px 0 0;
}

#education .education-entry span {
    display: inline-block;
    margin-bottom: 0;
}

.tab-wrapper {
    display: grid;
}

.tab-contents {
    display: block;          /* always laid out, so it counts toward the height */
    grid-area: 1 / 1;        /* all three tabs sit in the same spot */
    visibility: hidden;      /* but only the active one is seen */
}

.tab-contents.active-tab {
    visibility: visible;
}

/* -------------services---------------- */
#services{
    padding: 0px 0;    
}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.services-list div{
    background: #262626;
    padding: 40px;
    font-size: 18px;
    font-weight: 300;
    border-radius: 15px;
    transition: background 0.5s, transform 0.5s;
}
.services-list div i{
    font-size: 50px;
    margin-bottom: 15px;
}
.services-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}
.services-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}
.services-list div:hover{
    background: var(--accent);
    transform: scale(105%);
}

/* -------------portfolio---------------- */
#portfolio{
    padding: 50px 0;
}
.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
    justify-content: center;
    grid-gap: 40px;
    margin-top: 50px;
}
.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    
}
.work img{
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.work h3{
    align-items: center;
}
.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.5), var(--accent));
    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;
    transition: 0.5s;
}
.layer h3{
    font-size: 30px;
    font-weight: 600;
    padding-bottom: 5%;
}
.layer p{
    font-size: 20px;
    font-weight: 400;
    padding-bottom: 5%;
}
.layer a{
    font-size: 25px;
    color:var(--accent);
    text-decoration: none;
    line-height: 80px;
    background: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    text-align: center;
}

/* the hover info only shows on cards marked data-hover (the text is still used by the enlarged view) */
.work:not([data-hover]) .layer{
    display: none;
}
.work[data-hover]:hover img{
    transform: scale(1.1);
}
.work[data-hover]:hover .layer{
    height: 100%;
}

.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 3px solid var(--accent);
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover{
    background: var(--accent);
}

.modal-box p { margin-top: 15px; font-size: 18px;}
.modal-box p i{ font-size: 30px; color: var(--accent);}
.social-icons { margin-top: 20px; }




.social-icons a { font-size: 30px; margin-right: 15px; color: #ababab; display: inline-block; transition: transform 0.3s, color 0.3s;}
.social-icons a:hover {transform: scale(1.5) translateY(-3px); color: var(--accent);}


/* -------------portfolio filter---------------- */
.filter-bar,
.filter-sub{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 0;
}
.filter-sub{
    display: none;
    margin-top: 20px;
}
.filter-sub.open{
    display: flex;
}
.filter-btn{
    width: 150px;
    white-space: nowrap;
    text-align: center;
    font-size: 16px;
    padding: 10px 0;
    color: #fff;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
.filter-btn:hover{
    background: rgba(137, 207, 240, 0.25);
}
.filter-btn.active{
    background: var(--accent);
    color: #080808;
}
.filter-sub .filter-btn{
    font-size: 14px;
    padding: 7px 0;
    border-color: #ababab;
    color: #ababab;
}
.filter-sub .filter-btn.active{
    background: #ababab;
    color: #080808;
}
.filter-btn:focus-visible{
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.work.hidden{
    display: none;
}
#filter-empty{
    display: none;
    margin-top: 50px;
    color: #ababab;
    font-size: 20px;
}


/* -------------pages---------------- */
#work{
    padding: 40px 0 60px;
    scroll-margin-top: 110px;
}
#about.page-top{
    padding-top: 130px;
}

/* -------------contact popup---------------- */
.modal{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
}
.modal.open{
    display: flex;
}
.modal-box{
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #181818;
    border: 2px solid var(--accent);
    border-radius: 15px;
    padding: 40px;
    color: #ababab;
}
.modal-box h2{
    font-size: 40px;
    font-weight: 600;
    color: whitesmoke;
}
.modal-box p a{
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.modal-box p a:hover{
    color: var(--accent);
}
.modal-close{
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 22px;
    color: #ababab;
    cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover{
    color: var(--accent);
}

/* -------------viewer (opens when a card is clicked)---------------- */
.viewer{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9;
}
.viewer.open{
    display: block;
}
.viewer-scroll{
    height: 100%;
    overflow-y: auto;
    padding: 40px 20px;
    outline: none;
}
.viewer-box{
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    background: #181818;
    border: 2px solid var(--accent);
    border-radius: 15px;
}
.viewer-img{
    display: block;
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    background: #0e0e0e;
}
.viewer-body{
    padding: 28px 36px 40px;
    color: #ababab;
}
.viewer-title{
    font-size: 36px;
    font-weight: 600;
    color: whitesmoke;
}
.viewer-lead{
    max-width: 760px;
    margin-top: 12px;
    font-size: 20px;
    line-height: 1.6;
    color: #fff;
}
.viewer-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 20px 60px;
    margin-top: 28px;
}
.viewer-meta span{
    font-size: 14px;
    color: var(--accent);
}
.viewer-meta p{
    margin-top: 4px;
    font-size: 18px;
    color: #fff;
}
.viewer-block{
    margin-top: 44px;
}
.viewer-block h3{
    font-size: 26px;
    font-weight: 500;
    color: whitesmoke;
}
.viewer-block p{
    max-width: 760px;
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.7;
}
.viewer-images{
    margin-top: 24px;
}
.viewer-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.viewer-images img{
    display: block;
    width: 100%;
    border-radius: 12px;
}
.viewer-images figcaption{
    margin-top: 10px;
    font-size: 14px;
}
.viewer-link{
    display: inline-block;
    margin-top: 32px;
    padding: 8px 26px;
    color: #fff;
    text-decoration: none;
    border: 2px solid var(--accent);
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
}
.viewer-link:hover{
    background: var(--accent);
    color: #080808;
}
.viewer-close,
.viewer-nav{
    position: fixed;
    z-index: 1;
    width: 48px;
    height: 48px;
    font-size: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.3s, background 0.3s;
}
.viewer-close:hover,
.viewer-nav:hover{
    color: var(--accent);
    background: rgba(0, 0, 0, 0.85);
}
.viewer-close:focus-visible,
.viewer-nav:focus-visible{
    outline: 2px solid #fff;
}
.viewer-close{
    top: 18px;
    right: 30px;
}
.viewer-nav{
    top: 50%;
    margin-top: -24px;
}
.viewer-prev{
    left: 24px;
}
.viewer-next{
    right: 30px;
}
.work:focus-visible{
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* --------------css for large screens-------------- */
@media only screen and (min-width: 2000px){
    /* squeeze content width (not the splash header) */
    #work .container,
    #about .container,
    #services .container{
        padding: 10px 25%;
    }
}


/* --------------css for small screens-------------- */
nav .fas{
    display: none;

}

@media only screen and (max-width: 800px){
    nav .fas{
        display: block;
        font-size: 25px;
    
    }
    nav ul{
        background: var(--accent);
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100%;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }
    nav ul li{
        display: block;
        margin: 25px;
    }
    nav ul .fas{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
	/*
    #header{
        background-image: url(images/phone-background.png);
        background-position: right;
    }
	*/
    .sub-title{
        font-size: 40px;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    .about-col-1{
        margin-bottom: 20px;
    }
    .about-me-text{
        font-size: 14px;
    }
    .viewer-title{
        font-size: 28px;
    }
    .viewer-body{
        padding: 22px 20px 32px;
    }
    .viewer-nav{
        top: auto;
        bottom: 16px;
        margin-top: 0;
        width: 44px;
        height: 44px;
    }
    .viewer-prev{
        left: 16px;
    }
    .viewer-next{
        right: 16px;
    }
    .viewer-close{
        right: 16px;
    }
}