* {
    box-sizing: border-box;
    /* border-style: dashed;
    border-width: 1px;
    border-color: red; */
}

html, body{overflow:hidden;}


@keyframes animate {
    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 25%;
    }
    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}


@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    };
}



#container{
    display: grid;
    width: 100%;
    height: 100%;
    bottom: 50%;;
    place-items: center;
    font-family: 'Fredoka';
    color: #110c30;
    animation: fadeInAnimation ease 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

#bg{
    z-index: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.contain-card {
    display: flex;
    flex-direction: column;
    position: fixed;
    place-items: center;
    justify-content: center;
    align-items: center;
    font-family: 'Fredoka';
    /* width: 550px; */
    width: max-content;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 3.75rem 2.5rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(26px);
    text-align: center;
}

.contain-card > h2 {
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #f9f9f9;
}

#pfp {
    width: 200px;
    border-radius: 50%;
    background: linear-gradient(145deg, #01010d, #01010f);
    box-shadow:  28px 28px 56px #000006,
                -28px -28px 56px #020216;
    margin-bottom: 20px;
}

#mail{
    font-family: 'Fredoka';
    padding: 20px;
}

#mail-text {
    font-family: 'Fredoka'; 
    font-size: 25px;
    font-weight: 500;
    text-decoration: none;
    color: #bac0f0;
    transition: all .2s ease-in-out;
}

#mail-text:hover {
    color: #ffffff;
    transform: scale(3.4);
} 

#mail-text:active {
    color: #baadeb;
}


.social {
    display:inline-block;
    justify-content: space-evenly;
    margin-bottom: 30px;
}

.soclink {
    text-decoration: none;
    gap: 20rem;
}

.icon{
    width: 45px;
    height: 45px;
    /* margin-bottom: 20px; */
    padding: 4px;
    order: 0;
    flex-grow: 0;
    fill: #FFFFFF;
    transition: all .3s ease-in-out;
}

.icon:hover{
    transform: scale(1.3);
}


.links{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.links:hover{
    cursor: pointer;
    transform: scale(1);
}

.logo{
    width: 60px;
    height: 60px;
}

.link{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 11px 11px 11px 15px;
    font-family: 'Fredoka';
    gap: 10px;
    text-decoration: none;
    max-width: 457px;
    width: 100%;
    height: 75px;
    margin-bottom: 14px; 
    border-radius: 200px;
    transition: all .3s ease-in-out;
}

.link:hover{
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}


.link-text {
    font-family: 'Fredoka';
    font-style: normal;
    font-weight: 700;
    font-size: 35px;
    margin-right: 11px;
    color: #FFFFFF;
}

#hashnode {
    background: rgba(41, 98, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

#gmail {
    
    background: rgba(35, 47, 206, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

#linkedin {
    
    background: rgba(245, 83, 118, 0.4);
    box-shadow: 0 8px 32px 0 rgba(135, 31, 66, 0.37);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

#github {
    
    background: rgba(61, 217, 235, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 111, 135, 0.37);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}


/* Base styles (default) */

/* For mobile devices and small screens */
@media screen and (max-width: 600px) {


    

    
    .link-text {
        font-size: 24px; /* Reduce font size for better fit */
    }
    
    .social {
        margin-bottom: 15px; /* Reduce margin for smaller screens */
    }
    
    .icon {
        width: 35px; /* Adjust icon size for smaller screens */
        height: 35px;
    }
}

/* For medium screens and tablets */
@media screen and (min-width: 601px) and (max-width: 850px) {

    
    #pfp {
        width: 180px; /* Adjust profile picture size */
    }
    
    .link-text {
        font-size: 28px; /* Adjust font size for better fit */
    }
    
    .social {
        margin-bottom: 20px; /* Adjust margin */
    }
    
    .icon {
        width: 40px; /* Adjust icon size */
        height: 40px;
    }
}

/* For large screens and desktops */
@media screen and (min-width: 851px) and (max-width: 1200px) {

    .contain-card {
        padding: 3rem 2.5rem;

        height: auto;
    }
    
    #pfp {
        width: 200px; /* Adjust profile picture size */
    }
    
    .link-text {
        font-size: 32px; /* Adjust font size */
    }
    
    .social {
        margin-bottom: 25px; /* Adjust margin */
    }
    
    .icon {
        width: 45px; /* Adjust icon size */
        height: 45px;
    }
}


/* Adjustments for specific screen sizes */
@media screen and (min-width: 950px) and (max-width: 1500px) {
    #bg {
        height: 130%;
    }
    
    #container {
        height: 90%;
    }
}
