* {
    box-sizing: border-box;
}

html {
    font-family: "Work Sans";
    font-display: swap;
}

:root {
    --main: rgba(255, 237, 0);
}

.hero-textbox h1 {
    font-size: 80px;
    color: white;
}

a {
    color: #000;
    text-decoration: none!important;
}

a:hover {
    transition: color 0.2s ease-in-out;
    color: #000;
}

.hero-subtext {
    color:white;
    font-size: 25px;
    width: 70%;
    margin-bottom: 40px;
}

.portfolio-headline {
    font-size: 60px;
    margin-bottom: 40px;
}

.hero {
    height: 100vh; 
    background-image: url('../images/3d-abstract-network-communications-background-with-flowing-particles-design.png'); 
    background-size: cover;
    position:relative;
}

.hero-overlay {
    height: 100vh; 
    background-color: black; 
    opacity:20%; 
    z-index: 1; 
    position:absolute;
}

.hero-textbox {
    position:absolute;
    bottom: 30%;
    left: -100%;
    z-index:5;
    animation: textboxSlideIn 1.2s ease-in-out forwards;
}

@keyframes textboxSlideIn {
    0% {
        left: -100%;
        opacity: 0;
    }
    60% {
        left: 18%;
        opacity: 1;
    }
    70% {
        left: 9%;
    }
    100% {
        left: 12%;
    }
}

@keyframes textboxSlideIn2 {
    0% {
        left: -100%;
        opacity: 0;
    }
    60% {
        left: 12%;
        opacity: 1;
    }
    70% {
        left: 3%;
    }
    100% {
        left: 5%;
    }
}

@keyframes textboxSlideIn3 {
    0% {
        left: -100%;
        opacity: 0;
    }
    60% {
        left: 9%;
        opacity: 1;
    }
    70% {
        left: 1%;
    }
    100% {
        left: 3%;
    }
}

.tooltip-main {
    --bs-tooltip-bg: var(--main);
    --bs-tooltip-color: #000;
  }

.hero-btn {
    border-radius: 24px; 
    font-size: 20px;
    padding: 5px 10px;
    background-color: white;
    border: none;
    box-shadow: rgba(255, 237, 0, 0.4) -5px 5px, rgba(255, 237, 0, 0.3) -10px 10px, rgba(255, 237, 0, 0.2) -15px 15px, rgba(255, 237, 0, 0.1) -20px 20px, rgba(255, 237, 0, 0.05) -25px 25px;
}

.hero-btn a {
    color: #000;
}

.hero-btn:hover {
    background-color: var(--main);
    transform: scale(0.99);
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    animation: shadowFade 0.5s ease-in-out forwards;
}

@keyframes shadowFade {
    0% {
      box-shadow:
        rgba(255, 237, 0, 0.4) -5px 5px,
        rgba(255, 237, 0, 0.3) -10px 10px,
        rgba(255, 237, 0, 0.2) -15px 15px,
        rgba(255, 237, 0, 0.1) -20px 20px,
        rgba(255, 237, 0, 0.05) -25px 25px;
    }
  
    25% {
      box-shadow:
        rgba(255, 255, 255, 0.4) -5px 5px,
        rgba(255, 237, 0, 0.3) -10px 10px,
        rgba(255, 237, 0, 0.2) -15px 15px,
        rgba(255, 237, 0, 0.1) -20px 20px,
        rgba(255, 237, 0, 0.05) -25px 25px;
    }
  
    50% {
      box-shadow:
        rgba(255, 255, 255, 0.4) -5px 5px,
        rgba(255, 255, 255, 0.3) -10px 10px,
        rgba(255, 237, 0, 0.2) -15px 15px,
        rgba(255, 237, 0, 0.1) -20px 20px,
        rgba(255, 237, 0, 0.05) -25px 25px;
    }
  
    75% {
      box-shadow:
        rgba(255, 255, 255, 0.4) -5px 5px,
        rgba(255, 255, 255, 0.3) -10px 10px,
        rgba(255, 255, 255, 0.2) -15px 15px,
        rgba(255, 237, 0, 0.1) -20px 20px,
        rgba(255, 237, 0, 0.05) -25px 25px;
    }
  
    100% {
      box-shadow:
        rgba(255, 255, 255, 0.4) -5px 5px,
        rgba(255, 255, 255, 0.3) -10px 10px,
        rgba(255, 255, 255, 0.2) -15px 15px,
        rgba(255, 255, 255, 0.1) -20px 20px,
        rgba(255, 255, 255, 0.05) -25px 25px;
    }
  }

.tags {
    border-radius: 24px;
    font-size: 13px;
    background-color: white;
    padding: 5px 10px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    border: none!important;
    margin: 3px 3px;
}

.project-btns {
    border-radius: 24px;
    font-size: 19px;
    padding: 10px 20px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    border: none!important;
    margin: 0 3px;
}

.white-btn, .white-btn a {
    background-color: #FFF;
    color: #000;
}

.black-btn, .black-btn a {
    background-color: #000;
    color: #FFF;
}

.white-btn:hover, .white-btn:hover a {
    background-color:#000;
    color: #FFF;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.black-btn:hover, .black-btn:hover a {
    background-color: #FFF;
    color: #000;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.project-texts {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 200px;
}

.mini-icon {
    width:20px; 
    height: 20px;
}

.popup-img {
    cursor: pointer;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
  
.popup-overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    cursor: zoom-out;
}
  
.sort-btn {
    border-radius: 24px;
    background-color: white;
    padding: 10px 20px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    border: none!important;
    margin: 10px 3px;
}

.all-btn:hover, .all-btn.active {
    background-color: green;
    color: white;
}

.php-btn:hover, .php-btn.active {     
    background-color: #474A8A;
    color: #FFF;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.js-btn:hover, .js-btn.active {
    background-color: #F0DB4F;
    color: #000;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.html-css-btn:hover, .html-css-btn.active {
    background: rgb(38,77,228);
    background: linear-gradient(90deg,rgba(227,76,38,1) 0%, rgba(38,77,228,1) 100%);
    color: #FFF;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.python-btn:hover, .python-btn.active{
    background-color: #4B8BBE;
    color: #FFF;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.server-btn:hover, .server-btn.active {
    background-color: #2074f0;
    color: #FFF;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.cms-btn:hover, .cms-btn.active {
    background-color: #444140;
    color: #FFF;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.print-btn:hover, .print-btn.active {
    background-color: #ffc0cb;
    color: #000;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.portfolio {
    padding: 100px 12%;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 40px;
    gap: 80px;
}

.project-grid-inner {
    border-radius: 12px;
    border: 1px solid #000;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    overflow:hidden;
    transition: border 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    color: #000;
}

.project-grid-inner:hover {
    border: 1px solid var(--main);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
    transform: scale(0.995);
    cursor: pointer;
}

.project-grid-inner h3 {
    padding-left: 20px;
    border-top: 1px solid black;
    padding-top: 15px;
}

.project-grid-inner p { 
    padding-left: 20px;
}

.project-grid-inner button { 
    margin-left: 20px;
    border-radius: 24px;
    padding: 5px 10px;
    border: none;
    background-color: cyan;
}

.project-showcase-img {
    width: 100%; 
    height: 250px;
}

.project-showcase-inner {
    width:100%; 
    height:100%; 
    object-fit:cover; 
    object-position:50% 0%;
}

.project-image {
    width: 40%;
    height: 80%;
}

.project-gallery-images {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.project-gallery-image {
    height: 280px;
}

.project-heading-box h1 {
    font-size: 60px;
}

.project-heading-box .project-subtext {
    font-size: 25px;
    color: #6c6c6c;
}

@media (max-width: 1400px) {
    .portfolio {
        padding: 100px 8%;
    }
    .project-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .project-gallery-images {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1000px) {
    .portfolio {
        padding: 100px 5%;
        
    }

    .hero-textbox {
        left: 5%;
        animation: textboxSlideIn2 1.2s ease-in-out forwards;
    }
}

@media (max-width: 768px) {
    .portfolio {
        padding: 50px 3%;
    }

    .hero-textbox {
        left: 3%;
        animation: textboxSlideIn3 1.2s ease-in-out forwards;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-texts {
        grid-template-columns: 1fr;
    }
    .project-gallery-images {
        grid-template-columns: 1fr;
    }

    .project-image {
        width: 100%;
        margin-top: 100px;
    }

    .hero-textbox h1 {
        font-size: 44px;
    }

    .portfolio-headline {
        font-size: 40px;
    }

    .hero-subtext {
        font-size: 18px;
        width: 90%;
    }
    .hero-btn {
        font-size: 17px;
    }
    .project-heading-box h1 {
        font-size: 44px;
    }
    .project-heading-box .project-subtext {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .portfolio-headline {
        font-size: 30px;
    }
    .project-heading-box h1 {
        font-size: 34px;
    }

    .hero-textbox h1 {
        font-size: 34px;
    }
    .hero-subtext {
        font-size: 16px;
    }
    .hero-btn {
        font-size: 15px;
    }

    .sort-btn {
        font-size: 14px;
    }
}
