/*  import google fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html{
    scroll-behavior: smooth;
}

/* custom scroll bar (bottom-right) */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}.projects
::-webkit-scrollbar-thumb {
    background: #888;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* all similar content styling codes */
section{
    padding: 50px 0;
}
.max-width{
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}
.about, .skills, .projects, .works, .contact, footer{
    font-family: 'Poppins', sans-serif;
}
.about, .contact .contact-content{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
section .title{
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: 'Ubuntu', sans-serif;
}
section .title::before{
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 3px;
    background: #111;
    transform: translateX(-50%);
}
section .title::after{
    position: absolute;
    bottom: -8px;
    left: 50%;
    font-size: 20px;
    color: darkturquoise;
    padding: 0 5px;
    background: #fff;
    transform: translateX(-50%);
}


/* navbar styling */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 20px 50px;
    background: transparent; /* initially transparent */
    display: flex;
    transition: all 0.3s ease;
    justify-content: center; /* center the menu container */
    font-family: 'Ubuntu', sans-serif;
}

.navbar.sticky{
    background: darkturquoise; /* appears after scrolling */
}

/* menu items container */
.navbar .menu {
    display: flex;
    justify-content: space-between; /* spread items across full width */
    width: 100%;
    max-width: 1200px; /* optional max width for large screens */
    list-style: none;
}

/* each menu link */
.navbar .menu li a {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap; /* prevent wrapping */
    padding: 0 15px;
    transition: color 0.3s ease;
}

.navbar .menu li a:hover {
    color: turquoise;
}

/* menu btn styling (bottom-right) */
.menu-btn{
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    display: none;
}
.scroll-up-btn{
    position: fixed;
    height: 45px;
    width: 42px;
    background: darkturquoise;
    right: 30px;
    bottom: 10px;
    text-align: center;
    line-height: 45px;
    color: #fff;
    z-index: 9999;
    font-size: 30px;
    border-radius: 6px;
    border-bottom-width: 2px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.scroll-up-btn.show{
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
}
.scroll-up-btn:hover{
    filter: brightness(90%);
}

  
/* home section styling */
.home{
    display: flex;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 255)), url('images/background.gif');
    height: 100vh;
    min-height: 500px;
    background-size: 100%;
    background-size: cover;
    background-attachment: scrollS;
    font-family: 'Ubuntu', sans-serif;
}
.home .max-width{
    margin: auto 0 auto 30%;
}
.home .text-1{
    font-size: 27px;
}
.home .text-2{
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}
.home .text-3{
    font-size: 40px;
    margin: 5px 0px;
}
.home .text-3 span{
    color: rgb(0, 124, 126);
    font-weight: 500;
}
.home a{
    display: inline-block;
    background: rgb(0, 124, 126);
    color: #fff;
    font-size: 25px;
    padding: 12px 36px;
    margin-top: 20px;
    font-weight: 400;
    border-radius: 6px;
    border: 2px solid rgb(0, 124, 126);
    transition: all 0.3s ease;
}
.home a:hover{
    color: darkturquoise;
    background: none;
}

/* about section styling */
.about .title::after{
    content: "who I am";
}
.about .handles{
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
}
.about .max-width a{
    margin: 20px 10%;
    color: inherit;
}
.about .max-width i:hover{
    transform: scale(1.10);
    color: darkturquoise;
}

/* skills section styling */
.skills .max-width .title::after{
    content: "what I know";
}
.skills .max-width .bars{
    margin-bottom: 10px;
}
.skills .max-width .info{
    display: flex;
    margin-bottom: 5px;
    align-items: center;
    justify-content: space-between;
}
.skills .max-width span{
    font-weight: 500;
    font-size: 18px;
}
.skills .max-width .line{
    height: 5px;
    width: 100%;
    background: lightgrey;
    position: relative;
}
.skills .max-width .line::before{
    content: "";
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: darkturquoise;
}
.skills .max-width .python:before{
    animation: progressBar90 3s ease-in-out;
    animation-fill-mode:both; 
}
.skills .max-width .csharp:before{
    animation: progressBar85 3s 2s ease-in-out;
    animation-fill-mode:both; 
}
.skills .max-width .js::before{
    animation: progressBar80 3s 4s ease-in-out;
    animation-fill-mode:both; 
}
.skills .max-width .html::before{
    animation: progressBar70 3s 6s ease-in-out;
    animation-fill-mode:both; 
}
.skills .max-width .css::before{
    animation: progressBar70 3s 8s ease-in-out;
    animation-fill-mode:both; 
}
.skills .max-width .swift::before{
    animation: progressBar60 3s 10s ease-in-out;
    animation-fill-mode:both; 
}
.skills .max-width .java::before{
    animation: progressBar50 3s 12s ease-in-out;
    animation-fill-mode:both; 
}
.skills .max-width .c::before{
    animation: progressBar40 3s 14s ease-in-out;
    animation-fill-mode:both; 
}

@keyframes progressBar90 {
    0% { width: 0; }
    100% { width: 90%; }
}
@keyframes progressBar85 {
    0% { width: 0; }
    100% { width: 85%; }
}
@keyframes progressBar80 {
    0% { width: 0; }
    100% { width: 80%; }
}
@keyframes progressBar70 {
    0% { width: 0; }
    100% { width: 70%; }
}
@keyframes progressBar60 {
    0% { width: 0; }
    100% { width: 60%; }
}
@keyframes progressBar50 {
    0% { width: 0; }
    100% { width: 50%; }
}
@keyframes progressBar40 {
    0% { width: 0; }
    100% { width: 40%; }
}

/* projects section styling */
.projects, .demo-reel{
    color:#fff;
    background: linear-gradient(rgba(0, 0, 0, 255), rgba(0, 0, 0, 0)), url('images/background.jpg');
    height: max-content;
    background-size: 100%;
    background-size: cover;
    background-attachment: fixed;
}
.projects .title::after{
    background-color: transparent;
    content: "what I've done";
}
.projects-content{
    color: white;
    height: max-content;
    display: inline-block;
    margin-top: 100px;
}
.projects .projects-content .card{
    width: 48%;
    height: 20vw;
    min-height: max-content;
    float: left;
    text-align: center;
    margin: 1% 1%;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
    display: flex;
}
.projects .projects-content .card .box{
    padding: 20px 25px;
    border-radius: 6px;
    min-height: max-content;
    width: 100%;
}
.projects .projects-content #card1{
    background-image: url('images/frogger.gif');
    background-size: cover;
    background-position: center;
    background-attachment: local;
    background-repeat: no-repeat;
}
.projects .projects-content #card2{
    background-image: url('images/project2.PNG');
    background-size: cover;
    background-position: left;
    background-attachment: local;
    background-repeat: no-repeat;
}
.projects .projects-content #card3{
    background-image: url('images/project3.PNG');
    background-size: cover;
    background-position: left;
    background-attachment: local;
    background-repeat: no-repeat;
}
.projects .projects-content #card4{
    background-image: url('images/plantifind.gif');
    background-size: cover;
    background-position: center;
    background-attachment: local;
    background-repeat: no-repeat;
}
.projects .projects-content #card5{
    background-image: url('images/uxwashere50.PNG');
    background-size: cover;
    background-position: center;
    background-attachment: local;
    background-repeat: no-repeat;
}
.projects .projects-content #card6{
    background-image: url('images/aiguise.gif');
    background-size: cover;
    background-position: center;
    background-attachment: local;
    background-repeat: no-repeat;
}
.projects .projects-content #card7{
    background-image: url('images/pugna.PNG');
    background-size: cover;
    background-position: center;
    background-attachment: local;
    background-repeat: no-repeat;
}
.projects .projects-content #card8{
    background-image: url('images/pd.gif');
    background-size: cover;
    background-position: center;
    background-attachment: local;
    background-repeat: no-repeat;
}
.projects .projects-content #card9{
    background-image: url('images/hakuna.gif');
    background-size: cover;
    background-position: center;
    background-attachment: local;
    background-repeat: no-repeat;
}
.projects .projects-content #card10{
    background-image: url('images/snactuary.gif');
    background-size: cover;
    background-position: center;
    background-attachment: local;
    background-repeat: no-repeat;
}

.projects .projects-content #card11{
    background-image: url('images/battleghoti.gif');
    background-size: cover;
    background-position: center;
    background-attachment: local;
    background-repeat: no-repeat;
}

.projects .projects-content #card0{
    background-image: url('images/h_att.gif');
    background-size: cover;
    background-position: center;
    background-attachment: local;
    background-repeat: no-repeat;
}

.projects .projects-content .card p, .projects .projects-content .card .box, .projects .projects-content .card .box a{
    opacity: 0;
    color: white;
}
.projects .projects-content .card .box{
    transition: all 0.3s ease;
}
.projects .projects-content .card:hover{
    transform: scale(1.05);
}
.projects .projects-content .card:hover .box {
    background: rgba(0, 0, 0, .5);
    opacity: 1;
}
.projects .projects-content .card:hover .box a, .projects .projects-content .card:hover .box p{
    opacity: 1;
}
.projects .projects-content .card .text{
    font-size: 25px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}

/* works section styling */
.works{
    float: clear;
    color:#fff;
    background: linear-gradient(rgba(0, 0, 0, 255), rgba(0, 0, 0, 0)), url('images/background.jpg');
    height: max-content;
    background-size: 100%;
    background-size: cover;
    background-attachment: fixed;
}
.works .title::after{
    background: linear-gradient(rgba(0, 0, 0, 255), rgba(0, 0, 0, 0)), url('images/background.jpg');
    background-size: 100%;
    background-size: cover;
    background-attachment: fixed;
    content: "when I'm bored";
}

.works .carousel .card {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 375px;       /* maximum height */
    overflow: hidden;
    border-radius: 6px;
    padding: 0;              /* optional */
    box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
    background: #000;        /* fallback background color */
}

.works .carousel .card img {
    max-height: 375px;
    width: auto;             /* keep aspect ratio */
    object-fit: contain;     /* contain within card without cropping */
    display: block;
}

.works .carousel .card:hover .box{
    transform: scale(1.05);
}
.works .carousel .card .text{
    font-size: 25px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img,
.lightbox video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.owl-dots{
    text-align: center;
    margin-top: 20px;
}
.owl-dot{
    height: 13px;
    width: 13px;
    margin: 0 5px;
    outline: none!important;
    border-radius: 50%;
    border: 2px solid darkturquoise!important;
    transition: all 0.3s ease;
}
.owl-dot.active{
    width: 35px;
    border-radius: 14px;
}
.owl-dot.active,
.owl-dot:hover{
    background: darkturquoise!important;
}

/* contact section styling */
.contact .title::after{
    content: "get in touch";
}
.contact .contact-content .column{
    width: calc(50% - 30px);
}
.contact .contact-content .text{
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.contact .contact-content p{
    text-align: justify;
}
.contact .contact-content .left .icons{
    margin: 10px 0;
}
.contact .contact-content .icons{
    margin: auto;
}
.contact .contact-content .row{
    display: flex;
    height: 65px;
    align-items: center;
}
.contact .contact-content .row .info{
    margin-left: 30px;
}
.contact .contact-content .row i{
    font-size: 25px;
    color: black;
}
.contact .contact-content .row i:hover{
    transform: scale(1.10);
    color: darkturquoise;
}
.contact .contact-content .info .head{
    font-weight: 500;
}
.contact .contact-content .info .sub-title{
    color: #333;
}

/* footer section styling */
footer{
    background: darkturquoise;
    padding: 15px 23px;
    color: #fff;
    text-align: center;
}
footer span a{
    color: rgb(0, 124, 126);
    text-decoration: none;
}
footer span a:hover{
    text-decoration: underline;
}

.demo-reel-content {
    margin-top: 100px;
    margin-bottom: 100px; 
}

.demo-reel-content .title::after {
    background-color: transparent;
    content: "demo reel";
}

/* responsive media query start */
@media (max-width: 1500px) {
    .projects .projects-content .card{
        height: 25vw;
    }
}

@media (max-width: 1300px) {
    .home .max-width{
        margin-left: 0px;
    }
    .projects .projects-content .card{
        height: 30vw;
    }
}

@media (max-width: 1175px) {
    .projects .projects-content .card{
        height: 33vw;
    }
}

@media (max-width: 1075px) {
    .projects .projects-content .card{
        height: 36vw;
    }
}

@media (max-width: 991px) {
    .max-width{
        padding: 0 50px;
    }
    .projects .projects-content .card{
        height: 39vw;
    }

}
@media (max-width: 947px){
    .navbar .menu li a {
        font-size: 14px;
    }
    .home .max-width .text-2{
        font-size: 70px;
    }
    .home .max-width .text-3{
        font-size: 35px;
    }
    .max-width{
        max-width: 930px;
    }
    .projects .max-width .card{
        height: 38vw;
    }
    .contact .contact-content .column{
        width: 100%;
        margin-bottom: 35px;
    }
}

@media (max-width: 850px) {
    .projects .max-width .card{
        height: 45vw;
    }
}

@media (max-width: 725px) {
    .max-width{
        padding: 0 23px;
    }
    .home .home-content .text-2{
        font-size: 60px;
    }
    .home .home-content .text-3{
        font-size: 32px;
    }
    .home .home-content a{
        font-size: 20px;
    }
    .projects .max-width .card{
        width: 100%;
    }
    .projects .projects-content .card{
        height: 65vw;
    }
}

@media (max-width: 500px) {
    .navbar .menu li a {
        font-size: 12px;
    }
    .navbar {
        padding: 12px 0;

    }
    .home .home-content .text-2{
        font-size: 50px;
    }
    .home .home-content .text-3{
        font-size: 27px;
    }
    .about .max-width .text,
    .skills .max-width .left .text{
        font-size: 19px;
    }
    .text{
        font-size: 10px;
    }
    .contact .right form .fields{
        flex-direction: column;
    }
    .contact .right form .name,
    .contact .right form .email{
        margin: 0;
    }
    .scroll-up-btn{
        right: 15px;
        bottom: 15px;
        height: 38px;
        width: 35px;
        font-size: 23px;
        line-height: 38px;
    }
    .projects .projects-content .card{
        height: 75vw;
        min-height: max-content;
    }
}

