@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}
html{
    font-size: 70%;
}
body{
    background-color: black;
    color: white;
}
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}  
.header {
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: -30px;
}

.logo {
    color: rgb(211, 3, 3);
    font-size: 2rem;
    font-weight: bold;
    cursor: default;
}

.navbar a {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-left: 4rem;
}

.navbar a.active {
    color: rgb(211, 3, 3);
    border-bottom: 5px solid rgb(211, 3, 3);
}

.navbar a:hover {
    color: rgb(211, 3, 3); 
    border-bottom: 5px solid rgb(211, 3, 3);
} 

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}
.home .home-content h1{
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.3;
}
span{
    color: rgb(211, 3, 3);
}
.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.home-content p{
    font-size: 1.6rem;
}
.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid rgb(211, 3, 3);
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: rgb(211, 3, 3);
}
.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: rgb(211, 3, 3);
    box-shadow: 0  0 25px rgb(211, 3, 3);
}
.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}
.typing-text span{
    position: relative;
}
.typing-text span::before{
    content: "Jr Penetration Tester";
    color: rgb(211, 3, 3);
    animation: words 5s infinite;
}
.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.5s infinite;
}
@keyframes cursor{
    to{
        border-left: 5px solid rgb(211, 3, 3);
        margin-left: 10px;
        margin-top: 5px;
    }
}
@keyframes words{
    0%, 20%{
        content: "Bug Hunter";
    }
    21%, 40%{
        content: "CTF Player";
    }
}
@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}
@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }
    .home .home-content h3{
        font-size: 2.5rem;
    }
    .home-content h1{
        font-size: 5rem;
    }
}


.skills {
    padding: 100px 0;
    font-family: 'Poppins', sans-serif;
}

.max-width {
    max-width: 1300px;
    padding: 0 45px;
    margin: auto; 
}

.max-width h1 {
    text-align: center;
    position: relative;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 60px;
    padding-bottom: 20px;
}

.max-width h1::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: white;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    left: -35px;
}

.card {
    padding: 50px 25px;
    width: calc(26% - 20px);
    border-radius: 15px;
    background: black;
    text-align: center;
    user-select: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-right: -75px;
} 


.card::before {
    content: "";
    background: linear-gradient(45deg, #FFFFF0, #000000, #FFFFF0,#000000, #FFFFF0, #000000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 600%;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    filter: blur(8px);
    animation: glowing 20s linear infinite;

@keyframes glowing {
    0% {background-position: 0 0;}
    50% {background-position: 400% 0;}
    100% {background-position: 0 0;}
}


@keyframes glowing {
    0% {background-position: 0 0;}
    50% {background-position: 400% 0;}
    100% {background-position: 0 0;}
}

}
.box {
    transition: all 0.3s ease;
}

.box {
    transition: all 0.3s ease;
}

.card:hover .box {
    transform: scale(1.05);
}

.box i {
    font-size: 30px;
    color: darkgray;
    transition: color 0.3s ease;
}

.card:hover .box i {
    color: #fff;
}

.box h3 {
    font-size: 22px;
    padding: 10px 0 7px;
}

.box p {
    font-size: 15px;
    font-weight: bold;
}


.experience-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    margin-top: 12rem;
    margin-bottom: 20rem;
}

.experience-container {
    text-align: center;
}

.experience-container h3 {
    font-size: 1.5rem;
}

.experience-container i {
    color: ghostwhite;
    text-align: center;
}

.exper a {
    color: white;
}

.exper a:hover {
    color: red;
}

.exper i {
    font-size: 6rem;
    height: 10rem;
}

.exper .btn {
    padding: 15px 30px;
    color: ghostwhite;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
}

.exper .btn::after {
    content: "";
    z-index: -1;
    width: 100%;
    height: 99%;
    background-color: black;
    left: 0;
    bottom: 0%;
    border-radius: 10px;
    position: absolute;
}

.exper .btn::before {
    content: "";
    background: linear-gradient(
        45deg,
        #FF0000, #FF7300, #FFFB00, #48FF00, 
        #00FFD5, #002BFF, #FF00C8, #FF0000
    );

    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 600%;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    filter: blur(8px);
    animation: glowing 20s linear infinite;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
    opacity: 1;
}

@keyframes glowing {
    0% {background-position: 0 0;}
    50% {background-position: 400% 0;}
    100% {background-position: 0 0;}
}


@keyframes glowing {
    0% {background-position: 0 0;}
    50% {background-position: 400% 0;}
    100% {background-position: 0 0;}
}


.footer {
    flex-wrap: wrap;
    padding: 2rem 9%;
    color: black;
    background-color: ghostwhite;
    text-align: center;
    font-weight: bold;
}

.footer span {
    color: rgb(211, 3, 3);
}

.footer-text {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Responsive */

@media (max-width: 1190px) {
    .max-width  {
        padding: 0 25px;
    }

    .card {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    .section {
        padding: 10rem 3%;
    }

    .skills {
        padding: 7rem;
        margin-top: -15rem;
    }

    .card {
        margin-top: 25px;
    }

    .experience {
        margin-top: 25rem;
        margin-bottom: 35rem;
    }

    .experience-container {
        margin-top: 30rem;
    }

    .footer {
        padding: 2rem 3%;
    }

    .social-media a {
        font-size: 25px;
    }

    .content {
        margin-top: 25rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: .5rem;
    } 

    .logo {
        margin: 2px auto;
    } 

    .navbar {
        display: none;
    }

    .home {
        margin-top: -12rem;
    }

    .home-content h3 {
        font-size: 2.6rem;
        line-height: 2;
        text-align: center;
    }

    .home .home-content h1 {
        font-size: 3.5rem;
        line-height: 2;
        text-wrap: nowrap;
    }

    .home .home-content a {
        position: relative;
        left: 35%;
    }

    .home-content p {
        text-align: center;
    }
    
    .skills {
        margin-top: -8rem;
    }

     .experience {
        margin-top: 0;
    }
    
    .experience-container {
        display: flex;
        flex-direction: column;
        gap: 50px;
        margin-top: -1rem;
        margin-bottom: -25rem;
    }
    
    .exper .btn {
        padding: 13px 25px;
        font-size: 13px;
        font-weight: bold;
    }
    
    .exper .btn::before {
        filter: blur(3px);
    }
    
    .exper i {
        font-size: 40px;
    }
    
    .card {
        width: 100%;
        position: relative;
        left: 33px;
        margin-top: 25px;
    }

    .content {
        margin-top: -4rem;
    }

    .box h3 {
        font-size: 15px;
    }

    .box p {
        font-size: 10px;
    }

    @keyframes cursor{
        to{
            border-left: 3px solid rgb(211, 3, 3);
            margin-left: 5px;
            margin-top: 8px;
        }
    }
} 
