@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #e4f0ff;
    overflow: visible;
}

.logo a {
    position: relative;
    width: max-content;
}

.logo a::after,
.logo a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0px;
    left: 0px;
    transition: opacity 0.5s ease-in-out;
}

.logo a::after {
    background: linear-gradient(135deg, #e14fad 10%, #f9d423 100%);
}

.logo a::before {
    background: linear-gradient(135deg, #0e2cf0 10%, #d71372 100%);
}

.logo a:hover::after {
    opacity: 0;
}

.logo a:hover::before {
    opacity: 1;
}

.header {
    display: flex;
    justify-content: space-around;
    width: 100%;
    background-color: white;
    align-items: center;
}

.header a {
    color: black;
}

.logo {
    padding: 10px;
}

.navbar {
    padding: 10px;
}

ul {
    list-style: none;
    display: flex;
}

header li a {
    color: black;
}

.nav1,
.nav2,
.nav3 {
    width: auto;
    height: 100%;
    padding: 2px 10px;
}

.nav1:hover {
    background-color: lightgray;
}

.nav2:hover {
    background-color: lightgray;
}

.nav3:hover {
    background-color: lightgray;
}

.filesvg {
    display: none;
}

@media (max-width: 900px) {
    .filesvg {
        display: block;

    }

    .nav1,
    .nav2,
    .nav3 {
        display: none;
    }

    .header {
        display: flex;
        justify-content: space-between;
        width: 100%;
        background-color: white;
        padding: 0px 15px;
    }

    .sidebarbackground .sidenav4,
    .sidebarbackground .sidenav3,
    .sidebarbackground .sidenav2,
    .sidebarbackground .sidenav1 {
        display: block;
    }
}

.container2 {
    position: relative;
}

/*------------------------------------------- Sidebar--------------------------------------------------------- */
.sidebarAll {
    width: 100dvw;
    height: 100dvh;
    padding: 0px !important;
    margin: 0px !important;
    background-color: #00000011;
    backdrop-filter: blur(2px);
    position: fixed;
    z-index: 999;
    top: 0px;
    right: 0px;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(130px, 300px)) !important;
    grid-template-rows: auto !important;
}

.outsideclose {
    width: 100dvw;
    height: 100%;
    background-color: transparent;
    position: absolute;
    z-index: 6;
    left: 0;
}

.sidebarbackground {
    height: 100dvh;
    background-color: #020a0e;
    cursor: default;
    position: relative;
    z-index: 60;
}

.sidebarbackground nav ul {
    display: flex;
    flex-direction: column !important;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    z-index: 70;
}

.sidenav1:hover {
    background-color: rgba(211, 211, 211, 0.381);
    font-size: 1.2rem;
}

/* .sidenav1 a:hover {
    color: #000;
} */
.sidenav2:hover {
    background-color: rgba(211, 211, 211, 0.381);
    font-size: 1.2rem;
}

/* .sidenav2 a:hover {
    color: #000;
} */
.sidenav3:hover {
    background-color: rgba(211, 211, 211, 0.381);
    font-size: 1.2rem;
}

/* .sidenav3 a:hover {
    color: #000;
} */

.sidebarbackground .sidenav4,
.sidebarbackground .sidenav3,
.sidebarbackground .sidenav2,
.sidebarbackground .sidenav1 {
    width: 100%;
}

.sidebarbackground a {
    color: white;
    font-size: 1.2rem;
    position: relative;
    z-index: 5;
}

.sidenav4 {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    cursor: pointer;
    margin-right: 10px;
}

.sidenav4 svg {
    margin-top: 10px;
    fill: white;
}

/* ----------------------------------------------------SIDEBAR END------------------------------------------------------------ */
.profileimg {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin: 10vh 0;
    margin-top: 7vh;
}

.profileimg img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%;
    padding: 0 20px;
}

.buttons {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.btn2 {
    background-color: black;
    color: white;
    width: 15ch;
    min-width: 120px;
    height: 35px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn2:hover {
    box-shadow: 2px 3px 50px rgb(177, 33, 234);
    transform: scale(1.03);
}

.btn1 {
    background-color: transparent;
    border: 2px solid black;
    border-radius: 30px;
    width: 15ch;
    min-width: 120px;
    height: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn1::after {
    content: "";
    width: 0;
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(135deg, #e14fad 10%, #f9d423 100%);
    position: absolute;
    top: 0;
    left: 0;
    transition: width 150ms ease-in-out, box-shadow 150ms ease-in-out;
    z-index: -1;
}

.btn1:hover::after {
    width: 100%;
}

.btn1:hover {
    box-shadow: 2px 3px 50px rgb(177, 33, 234);
    transform: scale(1.03);
}

.socialmedia {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.socialmedia a {
    color: #000;
    transition: transform 0.3s ease;
}

.p1 {
    color: #240d05e1;
    font-weight: 600;
    font-size: clamp(1.2rem, 4vw, 1.5rem); /* Responsive font size */
    margin-bottom: 20px;
    word-wrap: break-word;
}

.p2 {
    font-size: clamp(1.5rem, 5vw, 2rem); /* Responsive font size */
    line-height: 1.4;
    color: #510400;
    word-wrap: break-word;
    max-width: 100%;
}

.p3 {
    color: #240d05e1;
    font-weight: 600;
    font-size: clamp(1.2rem, 4vw, 1.5rem); /* Responsive font size */
    margin-top: 40px;
    word-wrap: break-word;
}

.fa {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.fa:hover {
    transform: scale(1.12);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .profileimg img {
        width: 220px;
        height: 220px;
    }
    
    .buttons {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .btn1, .btn2 {
        width: 200px;
        min-width: unset;
    }
    
    .socialmedia {
        gap: 30px;
    }
    
    .fa {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .profileimg img {
        width: 200px;
        height: 200px;
    }
    
    .header {
        justify-content: space-between;
        padding: 0 15px;
    }
    
    .text {
        padding: 0 15px;
    }
}

@media (max-width: 900px) {
    .profileimg img {
        width: 240px;
        height: 240px;
    }

    .filesvg {
        display: block;
        cursor: pointer;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }
    
    .filesvg:hover {
        background-color: lightgray;
    }

    .nav1,
    .nav2,
    .nav3 {
        display: none;
    }

    .header {
        display: flex;
        justify-content: space-between;
        width: 100%;
        background-color: white;
        padding: 0px 15px;
    }

    .sidebarbackground .sidenav4,
    .sidebarbackground .sidenav3,
    .sidebarbackground .sidenav2,
    .sidebarbackground .sidenav1 {
        display: block;
    }
}

@media (max-width: 400px) {
    .profileimg img {
        width: 180px;
        height: 180px;
    }
    
    .p1 {
        margin-bottom: 15px;
    }
    
    .p3 {
        margin-top: 30px;
    }
    
    .buttons {
        margin: 15px 0;
    }
    
    .btn1, .btn2 {
        width: 180px;
        height: 40px;
    }
    
    .socialmedia {
        gap: 25px;
    }
}
