@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

section {
    padding-top: 100px;
    min-height: 100vh;
}

body {
    background: #2a2f3a;
}


a {
    color: #E0E0E0;
    text-decoration: none;
}

.navbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: 25px 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.2s;
    background: #1f242d;
}

@keyframes show-content {
    100% {
        visibility: visible;
        opacity: 1;
    }
}

.navbar .logo {
    font-size: 30px;
    font-weight: 700;
}

.navbar .logo span {
    color: #5E2BFF;
}

.navbar ul {
    display: flex;
}

.navbar ul li {
    list-style: none;
    margin-left: 35px;
}

.navbar ul li a {
    font-size: 20px;
    font-weight: 500;
    transition: .5s;
    color: #E0E0E0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #D6B3FF;
    transition: width 0.3s ease;
}

.navbar ul li:hover a,
.navbar ul li.active a {
    color: #D6B3FF;
}

.menu-toggle {
    font-size: 28px;
    color: white;
    cursor: pointer;
    display: none;
}

/* Responsive Navbar: Show Hamburger Icon */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #333;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        text-align: center;
        border-radius: 5px;
    }

    .nav-links li {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links.active {
        display: flex;
    }
}

.home {
    display: flex;
    align-items: center;
    height: 100vh;
    padding: 60px 9% 0;
    color: #fff;
    visibility: hidden;
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.6s;
    gap: 50px;
}

.home-info h1 {
    font-size: 55px;
}


.home-info h2 {
    font-size: 32px;
    display: flex;
    align-items: center;
    height: 40px;
    margin: 15px 0;
}

.home-info h2 .animated-text {
    font-size: 32px;
    font-weight: 500;
    min-width: 280px;
    margin-left: 10px;
    color: #5E2BFF;
    position: relative;
}

.home-info h2 .animated-text::before {
    content: "Network Engineer";
    animation: words 8s infinite;
}

.home-info h2 .animated-text::after {
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    background-color: #1F242D;
    border-left: 2px solid #5E2BFF;
    right: -8px;
    animation: cursor .8s infinite, typing 8s steps(14) infinite;
}

@keyframes cursor {
    to {
        border-left: 2px solid #1F242D;
    }
}

@keyframes words {

    0%,
    20% {
        content: "Network Engineer";
    }

    21%,
    40% {
        content: "Network Security Engineer";
    }

    41%,
    60% {
        content: "Data Scientist";
    }

    61%,
    80% {
        content: "Software Developer";
    }

    81%,
    100% {
        content: "Coding Tutor";
    }
}

@keyframes typing {

    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95% {
        width: 0;
    }

    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85% {
        width: calc(100% + 8px);
    }
}

.home-info p {
    font-size: 16px;
    margin-top: 10px 0 25px;
}

.home-info .btn-sci {
    display: flex;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background: #5E2BFF;
    border: 2px solid #5E2BFF;
    border-radius: 40px;
    box-shadow: 0 0 10px #5E2BFF;
    font-size: 16px;
    color: #1F242D;
    font-weight: 600;
    margin-top: 5px;
    transition: .5s;
}

.btn:hover {
    background: transparent;
    color: #5E2BFF;
    box-shadow: none;
}

.home-info .btn-sci .sci {
    margin-left: 20px;
}

.home-info .btn-sci .sci a {
    display: inline-flex;
    padding: 8px;
    border: 2px solid #5E2BFF;
    border-radius: 50%;
    font-size: 20px;
    color: #5E2BFF;
    margin: 0 8px;
    transition: .5s;
}

.home-info .btn-sci .sci a:hover {
    background: #5E2BFF;
    color: #1f242d;
    box-shadow: 0 0 10px #5E2BFF;
}

.home-img .img-box {
    width: 32vw;
    height: 32vw;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    position: relative;
    align-items: center;
    overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: conic-gradient(transparent, transparent, transparent, #5E2BFF);
    transform: rotate(0deg);
    animation: rotate-border 10s linear infinite;
}

.home-img .img-box::after {
    animation-delay: -5s;
}

@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

.home-img .img-box .img-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1f242d;
    border: .1px solid #1f242d;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.home-img .img-box .img-item img {
    position: absolute;
    display: block;
    width: 85%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

.bars-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1;
}

.bars-animation .bar {
    width: 100%;
    height: 100%;
    background: #1f242d;
    transform: translateY(-100%);
    animation: show-bars .5s ease-in-out forwards;
    animation-delay: calc(.1s * var(--i));
}

@keyframes show-bars {
    100% {
        transform: translateY(0%);
    }
}

/*About section*/
.about {
    background-color: #2a2f3a;
    padding: 80px 0;
}

.about-container {
    display: grid;
    grid-template-columns:350px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-image {
    position: relative;
    max-width: 350px;
    width: 100%;
    margin: 10px auto 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-100%);
    animation: slideIn 1s forwards;
}

/* Slide-In Animation */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%);
       
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        
    }
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.about-image:hover img {
    transform: scale(1.05);
}

.about-info h2 {
    font-size: 30px;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.about-info h2 span {
    color: #5E2BFF;
}

.about-info h3 {
    font-size: 20px;
    color: #C8A2C8;
    margin-bottom: 15px;
}

.about-description {
    color: #E0E0E0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-info h2,
.about-info h3,
.about-description {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInVertical 1s forwards;
}

/* Slide-In Animation for Text Elements */
@keyframes slideInVertical {
    0% {
        opacity: 0;
        transform: translateY(20px);
        
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        
    }
}

.hire-me {
    display: inline-block;
    padding: 10px 30px;
    background: #5E2BFF;
    border: 2px solid #5E2BFF;
    border-radius: 40px;
    box-shadow: 0 0 10px #5E2BFF;
    font-size: 16px;
    color: #1F242D;
    font-weight: 600;
    margin-top: 20px;
    transition: .5s;
}

.hire-me:hover {
    background: transparent;
    color: #5E2BFF;
    box-shadow: none;
}

/*Resume section*/    
.resume {
    padding-top: 20px;
    padding-bottom: 80px;
    background: #1f242d;
}

.resume .title {
    font-size: 30px;
    color: #e0e0e0;
    margin-bottom: 10px;
    text-align: center;
}

.resume .title span {
    color: #5E2BFF;
}

.resume .section-title {
    font-size: 20px;
    color: #C8A2C8;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
}


.tab-box {
    display: flex;
    width: 100%;
    height: 50px;
    margin: 10px 0 20px;
    position: relative;
}


.tab-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #7c8594;
    z-index: 1;
}


.tab-list {
    display: flex;
    align-items: center;
    padding: 0 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #7c8594;
    position: relative;
    z-index: 2;
    height: 100%;
    border-bottom: 3px solid transparent;
}


.tab-list:first-child {
    justify-content: flex-start;
    margin-right: auto;
}


.tab-list:nth-child(2) {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


.tab-list:last-child {
    justify-content: flex-end;
    margin-left: auto;
}

.tab-list.active {
    border-color: #5E2BFF;
    color: #5E2BFF;
}

.tab-list h3 {
    font-size: 25px;
    margin: 0;
    white-space: nowrap;
}

.tab-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
}

.tab-grid {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.tab-grid.active {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    position: relative;
}

.resume-box {
    display: grid;
    gap: 20px;
}

.tab-item {
    background-color: #252a33;
    border-radius: 8px;
    padding: 20px;
}

.tab-item h4 {
    font-size: 23px;
    margin: 5px 0;
}

.resume-item h4:nth-child(1),
.resume-item h4:nth-child(3) {
    font-size: 17px;
    color: #5E2BFF;
    font-weight: 400;
}

.resume-item h4:nth-child(3) {
    position: relative;
    color: #E0E0E0;
    margin-left: 20px;
}

.resume-item h4:nth-child(3)::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #5E2BFF;
    border-radius: 50%;
}

.tab-item p {
    margin-top: 10px;
    color: #E0E0E0;
    line-height: 1.6;
}


/* Education Grid Animation */
.tab-grid.resume-box.education {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tab-grid.resume-box.education .tab-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.tab-grid.resume-box.education .tab-item:nth-child(1) {
    animation-delay: 0.1s;
}

.tab-grid.resume-box.education .tab-item:nth-child(2) {
    animation-delay: 0.3s;
}

.tab-grid.resume-box.education .tab-item:nth-child(3) {
    animation-delay: 0.5s;
}

.tab-grid.resume-box.education .tab-item:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skills Section Grid Layout */
/* Global row and column styles */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 15px;
}

.column {
    width: 100%;
    padding: 0 15px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .column {
        width: 50%;
        margin-bottom: 0;
    }
}

/* Skill Bar Wrapper Styles */
#skill-bar-wrapper {
    margin-top: 30px;
}

/* Specific text styling override for skills section */
#skill-bar-wrapper .text-left h4 {
    font-size: 16px;
    padding-top: 15px;
    color: #E0E0E0;
    font-weight: 600;
    margin: 0;
}

/* Skill Bar Container Styles */
.skillbar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 15px;
    height: 10px;
    overflow: hidden;
}

/* Skill Bar Animation */
.skillbar-container .skills {
    height: 100%;
    width: 0;
    background-color: #C8A2C8;
    border-radius: 5px;
    animation: fillAnimation 1.5s ease-out forwards;
}

/* Keyframes for smooth width animation */
@keyframes fillAnimation {
    from {
        width: 0;
    }

    to {
        width: var(--percent-width);
    }
}

/* Setting width for specific skill bars */
.skillbar-container[data-percent="85%"] .skills {
    --percent-width: 85%;
    animation-delay: 0.1s;
}

.skillbar-container[data-percent="80%"] .skills {
    --percent-width: 80%;
    animation-delay: 0.3s;
}

.skillbar-container[data-percent="75%"] .skills {
    --percent-width: 75%;
    animation-delay: 0.5s;
}

.skillbar-container[data-percent="70%"] .skills {
    --percent-width: 70%;
    animation-delay: 0.7s;
}

.skillbar-container[data-percent="60%"] .skills {
    --percent-width: 60%;
    animation-delay: 0.9s;
}

.skillbar-container[data-percent="45%"] .skills {
    --percent-width: 45%;
    animation-delay: 1.1s;
}

.skillbar-container[data-percent="40%"] .skills {
    --percent-width: 40%;
    animation-delay: 1.3s;
}


/* Experience section */
.tab-grid.resume-box.experience {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
   
    gap: 20px;
    align-items: flex-start;
    
    position: relative;
    
}


.tab-grid.resume-box.experience .tab-item {
    opacity: 1;
   
    transform: translateY(0);
    
}

/* Fade-in animation */
.tab-grid.resume-box.experience .tab-item:nth-child(1) {
    animation: fadeInUp 0.6s ease-out forwards;
}

.tab-grid.resume-box.experience .tab-item:nth-child(2) {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.2s;
    
}

/* Keyframes for smooth fade-in transition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        
    }

    to {
        opacity: 1;
        transform: translateY(0);
        
    }
}

/*Services section*/
.services {
    padding-top: 20px;
    padding-bottom: 80px;
    background: #2a2f3a;
}

.services .title {
    font-size: 30px;
    color: #e0e0e0;
    margin-bottom: 10px;
    text-align: center;
}

.services .title span {
    color: #5E2BFF;
}

.services .section-title {
    font-size: 20px;
    color: #C8A2C8;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 1px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.service-item {
    background: #252a33;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.4s ease-in-out;
    position: relative;
    color: #E0E0E0;
    overflow: hidden;
}


.service-item:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}


.icon {
    font-size: 40px;
    color: #5E2BFF;
    margin-bottom: 10px;
}


@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        
    }
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(1, 1fr);
        
    }
}

/*Portfolio section*/

.portfolio {
    padding: 80px 9%;
    background: #1f242d;
}

.portfolio .title {
    font-size: 30px;
    color: #e0e0e0;
    margin-bottom: 10px;
    text-align: center;
}

.portfolio .title span {
    color: #5E2BFF;
}

.portfolio .section-title {
    font-size: 20px;
    color: #C8A2C8;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 1px;
}
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-box {
    background: #2a2f3a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-img {
    height: 200px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-box:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 20px;
}

.portfolio-numb {
    font-size: 50px;
    font-weight: 700;
    -webkit-text-stroke: 1px #5E2BFF;
    color: transparent;
    line-height: 1;
}

.portfolio-title {
    font-size: 22px;
    margin: 10px 0;
    color: #e0e0e0;
}

.portfolio-desc {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 15px;
    line-height: 1.5;
}

.portfolio-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #3a3f4a;
}

.portfolio-tech {
    font-size: 13px;
    color: #5E2BFF;
    font-weight: 600;
}

.portfolio-github {
    color: #e0e0e0;
    font-size: 24px;
    transition: color 0.3s ease;
}

.portfolio-github:hover {
    color: #5E2BFF;
}

@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .portfolio {
        padding: 60px 5%;
    }
}

/*Contact section*/
.contact{
    background: #2a2f3a;
    padding-top: 30px;
    padding-bottom: 30px;
}

.contact .title {
    font-size: 30px;
    color: #e0e0e0;
    margin-bottom: 20px;
    text-align: center;
}

.contact .title span {
    color: #5E2BFF;
}

.contact-container{
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
}

.contact-container .contact-box:first-child{
    align-self: center;
}

.contact-box h2{
    font-size: 45px;
}

.contact-box p{
    font-size: 16px;
}

.contact-box .desc {
    margin: 15px 0 25px;
}

.contact-box .contact-detail{
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.contact-detail i{
    display: inline-flex;
    background: #1f242d;
    color: #5E2BFF;
    font-size: 30px;
    padding: 12px;
    border-radius: 6px;
    margin-right: 15px;
}

.contact-detail .detail p:first-child {
    color: #5E2BFF;
}

.contact-box form {
    background: #252a33;
    padding: 25px 35px 35px;
    border-radius: 10px;
    text-align: center;
}

.contact-box .heading {
    font-size: 35px;
}

.contact-box .field-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-box .field-box input,
.contact-box .field-box textarea {
    padding: 15px;
    background: #2a2f3a;
    border: 1.5px solid #2a2f3a;
    border-radius: 6px;
    font-size: 16px;
    color: #E0E0E0;
}

.contact-box .field-box textarea {
    grid-column: 1 / -1;
    height: 260px;
    resize: none;
}

.contact-box .field-box input:focus,
.contact-box .field-box textarea:focus {
    border-color: #5E2BFF;
}

.contact-box .btn {
    margin-top: 20px;
    cursor: pointer;
}

/*Footer section*/
.footer {
    background: #1f242d;
    padding: 30px 0;
    border-top: 1px solid #2a2f3a;
    margin-top: 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    justify-content: center;
}

.copyright-text {
    color: #E0E0E0;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

.copyright-text:hover {
    color: #5E2BFF;
    transition: color 0.3s ease;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}