@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');

html {
    scroll-behavior: smooth;
}

*{
    padding : 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    scroll-behavior: smooth;
    text-decoration: none;

}

:root{
    --text-color: #f5f5ff;
    --hover-color: #00ff66;
    --bg-color:#121212;
    --secon-bg-color:#292e33;
    --big-font:2.5rem;
    --norma-font:2rem;
    --neon-box-shadow:0 0 .5rem #12f7ff;
    --h2-font:3rem;
    --font-neon-text-shadow:0 0 10px rgba(18,247,255,0.3),
    0 0 20px rgba(18,247,255,0.3),
    0 0 30px rgba(18,247,255,0.3),
    0 0 40px rgba(18,247,255,0.3),
    0 0 70px rgba(18,247,255,0.3),
    0 0 80px rgba(18,247,255,0.3),
    0 0 100px rgba(18,247,255,0.3),
    0 0 150px rgba(18,247,255,0.3);
}


::-webkit-scrollbar{
    height: 0;
    width: .5rem;
}
::-webkit-scrollbar-track{
    background-color: var(--secon-bg-color);
}

::-webkit-scrollbar-thumb{
    background: var(--hover-color);
    border-radius: 5rem;
}
body{
    font-family: "Poppins",sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 10%;
}

header.sticky{
    background: var(--bg-color);
    border-bottom: 1px solid var(--secon-bg-color);
    padding: 12px 10%;
}

.logo{
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    flex-grow: 1;
}

span{
    color: var(--hover-color);

}

.navlist{
    display: flex;
}

.navlist *{
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 10px;
}

.navlist a:hover{
    color: var(--hover-color);
    text-shadow:0 0 10px rgba(18,247,255,0.6),
    0 0 20px rgba(18,247,255,0.6),
    0 0 30px rgba(18,247,255,0.6),
    0 0 40px rgba(18,247,255,0.6),
    0 0 70px rgba(18,247,255,0.6),
    0 0 80px rgba(18,247,255,0.6),
    0 0 100px rgba(18,247,255,0.6),
    0 0 150px rgba(18,247,255,0.6);
}

.navlist a.active {
    color: var(--hover-color);
}

#menu-icon{
    font-size: 1.8rem;
    z-index: 10001;
    cursor: pointer;
    margin-left: 25px;
    background: var(--hover-color);
    border-radius: 3px;
    color: var(--secon-bg-color);
    display: none;
}

section{
    padding: 100px 10%;
}

.change-text  {
    font-size: 1.5rem;
    font-weight: 600;
}
.change-text h3 {
    display: inline-flex;
    margin: 0;
    vertical-align: top;
}

.change-text .word {
    display: flex;
    position: absolute;
    opacity: 0;
}

.word {
    animation: typing 3s steps(10) infinite;
    overflow: hidden;
    white-space: nowrap;
}

@keyframes typing {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

/* General styling from previous code */
.home {
    min-height: 100vh;
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    grid-gap: 4cm;
}

.home-content {
        max-width: 600px;

}

.home-content h1 {
    font-size: var(--big-font);
    font-weight: 700;
}

.home-content p{
    color: #bdbdbd;
    line-height: 1.6;
}

.change-text h3 .word .letter{
    transform-origin: center center 25px;
}

.change-text h3 .word .letter.out{
    transform: rotatex(90deg);
    transition: 0.32s cubic-bezier(0.6,0,0.7,0.2);
}

.change-text h3 .word .letter.in{
    transition: 0.38s ease;
}

.change-text h3 .word .letter.behind{
    transform: rotateX(-90deg);
}

.contact-icons {
    margin-top: 8rem;
    display: flex;
    justify-content: space-between;
    width: 220px;
    height: 40px;
}

.contact-icons a {
    display: inline-flex;
    width: 50px;
    height: 100%;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    color: var(--hover-color);
    border: 2px solid var(--hover-color);
    transition: .6s;
    box-shadow: 0 0 0.3rem #12f7ff;
    border-radius: 5px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.contact-icons a i{
    font-size: 1.5rem;
}

.contact-icons a:hover {
    color: var(--bg-color);
}

.contact-icons a::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--hover-color);
    transition: .6s;
    z-index: -1;
}

.contact-icons a:hover:before{
    width: 100%;
}

.home-image{
    position: relative;
}

.img-box{
    text-align: center;
}
.img-box img{
    width: 100%;
    max-width: 350px;
    height: auto;
}

.liquid-shape{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 10%;
}
.liquid-shape:nth-child(2){
    filter: blur(50px);
}

/* Title styling */
.about-title {
    font-size: 36px;
    font-family: 'Georgia', serif; /* Use any distinctive font */
    margin-bottom: 20px;
    color: #00ff66;
    text-align: center;
  }
  
  /* Flex container */
  .about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* Image styling */
  .about-image {
    width: 400px;
    height: auto;
    margin-right: 20px;
    border-radius: 10px;
  }
  
  /* Text section */
  .about-text {
    max-width: 600px;
    font-size: 18px;
    color: #bdbdbd; /* Adjust for contrast */
  }
  
  /* "Read More" link */
  #see-more {
    display: block;
    color: #00ff66; /* Match your theme color */
    cursor: pointer;
    margin-top: 10px;
  }
  
  .more-text {
    display: none; /* Initially hidden */
  }

  #skills {
    padding: 2rem;
    text-align: center;
}

.skills-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #00ff66;
}

.skills-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

.skill-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.skill-box i {
    font-size: 4rem;
    color: #444;
    margin-bottom: 10px;
}

.skill-box h3 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
}

.skill-box p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.skill-link {
    color: #32cd32; /* Green color for links */
    text-decoration: none;
    font-weight: bold;
}

.skill-link:hover {
    text-decoration: underline;
}

/* Calendar Icon - Blue */
.skill-box .bx-calendar {
    color: #1e90ff; /* Blue color for calendar icon */
}

/* Email Icon - Red */
.skill-box .bx-envelope {
    color: #ff4500; /* Red color for email icon */
}

/* Trello Icon - Blue */
.skill-box .bxl-trello {
    color: #0079bf; /* Trello’s standard blue color */
}

/* HTML Icon - Orange */
.skill-box .bxl-html5 {
    color: #e34c26; /* HTML orange color */
}

/* CSS Icon - Blue */
.skill-box .bxl-css3 {
    color: #2965f1; /* CSS blue color */
}

/* JavaScript Icon - Yellow */
.skill-box .bxl-javascript {
    color: #f7df1e; /* JavaScript yellow color */
}

.certificate-container {
    display: flex;
    gap: 20px; /* Space between certificates */
    justify-content: center;
}

.certificates {
    width: 200px;
    text-align: center;
    background: #212121;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.certificates img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.certificates h3 {
    font-size: 18px;
    margin-top: 10px;
}

.certificates p {
    font-size: 14px;
    color: #888;
}

.certificates a {
    color: var(--hover-color); /* Initial link color */
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth color transition */
}

#Portfolio {
    background-color: #1a1a1a; /* Change to your preferred background color */
    color: #ccc;
    padding: 50px 20px; /* Add some padding */
    text-align: center; /* Center the text */
  }
  
  .section-title {
    font-size: 2.5em; /* Adjust font size for the section title */
    margin-bottom: 30px; /* Space below the title */
    color: #00ff66;
  }
  
  .portfolio-items {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items */
  }
  
  .portfolio-item {
    background-color: #333; /* Background for each portfolio item */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding for items */
    margin: 10px 0; /* Space between items */
    width: 80%; /* Set width */
  }
  
  .portfolio-item h3 {
    margin-bottom: 10px; /* Space below item title */
  }
  
  .portfolio-item a {
    color: #00ff66; /* Link color */
    text-decoration: none; /* Remove underline from links */
    transition: color 0.3s; /* Smooth transition for hover */
  }
  
  .portfolio-item a:hover {
    color: #00bfff; /* Change color on hover */
  }
  
  #contact {
    background-color: #333; /* Dark background for the contact section */
    color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px; /* Set a max width for the contact section */
    margin: 0 auto; /* Center the contact section */
}

h2 {
    text-align: center; /* Center the "Contact Me" heading */
    color: #28a745; /* Green color for the heading */
}

form {
    display: flex;
    flex-direction: column;
    background-color: #444; /* Darker gray background for the form */
    padding: 20px; /* Add padding inside the form */
    border-radius: 10px; /* Rounded corners for the form */
}

label {
    margin: 10px 0 5px;
}

input, textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #555; /* Dark background for input fields */
    color: white; /* White text in input fields */
}

button {
    margin-top: 10px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007BFF; /* Button color */
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #222; /* dark background */
    color: #fff; /* text color */
    position: relative;
}

/* Links styling */
footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
    transition: color 0.3s;
}

footer a:hover {
    color: #ddd; /* light gray on hover */
}

/* LinkedIn and GitHub specific colors */
footer a[href*="linkedin"] {
    color: #0077B5; /* LinkedIn blue */
}

footer a[href*="linkedin"]:hover {
    color: #005983;
}

footer a[href*="github"] {
    color: #333; /* GitHub gray */
}

footer a[href*="github"]:hover {
    color: #555;
}

footer .bx-up-arrow-alt {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 24px;
    width: 50px; 
    height: 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hover-color); 
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); 
    transition: background-color 0.3s, color 0.3s;
}

footer .bx-up-arrow-alt:hover {
    background-color: var(--hover-color); 
    color: #fff;
}




.container {
    display: flex;
    flex-direction: column;
    min-height: 30vh; /* Full viewport height */
}

/* Flex to push footer to the bottom */
main {
    flex: 1;
}

.scroll-scale{
    opacity: 0;
    transform: scale(.9);
    transition: all 2s;
}

.scroll-bottom{
    opacity: 0;
    transform: translateY(300px);
    transition: 3s;
}

.scroll-top{
    opacity: 0;
    transform: translateY(-300px);
    transition: 3s;
}

.show-items{
    opacity: 1;
    transform: translateX(0);
}

@media(max-width:991px) {
    header,
    header.sticky {
        padding: 15px 5%;
    }
    footer {
        padding: 15px 5%;
    }
    section {
        padding: 50px 5%;
    }
    .navlist a {
        padding: 8px 15px;
    }
    :root {
        --big-font: 2.2rem;
        --norma-font: 1.8rem;
        --neon-box-shadow: 0 0 .8rem #12f7ff;
        --h2-font: 3rem;
    }
    .home.content {
        margin-top: 5rem;
    }
    .about-title {
        font-size: 28px;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        width: 60%; /* Adjust image size */
        margin: 0 auto 20px auto; /* Center image and add spacing */
    }
    .about-text {
        max-width: 90%;
    }
    .certificate-images {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .certificate-image,
    .skills-image {
        width: 100%; /* Adjust the size as needed */
        max-width: 500px;
    }
}

@media(max-width:768px) { /* Fixed the typo here */
    #menu-icon {
        display: block;
        transition: all .4s ease;
    }
    #menu-icon.bx-x{
        transform: rotate(-180deg);
    }
    .navlist {
        display: flex;
        position: absolute;
        top: -1000px;
        right: 0;
        left: 0;
        flex-direction: column;
        background: var(--bg-color);
        text-align: left;
        padding: 0 5%;
        transition: all .45s ease;
    }
    .navlist a {
        display: block;
        padding-bottom: 1rem;
        font-size: 1rem;
    }
    .navlist.open {
        top: 100%;
    }
    .home{
        grid-template-columns: 1fr;
    }
    .home-image{
        margin-bottom: 5rem;
    }
    .liquid-shape{
        width: 80%;
        left: 10%;
        top: 13%;
    }
    .about-title {
        font-size: 24px;
    }
    .about-image {
        width: 80%;
    }
    .about-text {
        font-size: 16px;
        max-width: 100%;
    }
    .skills-grid{
        grid-template-columns: 1fr;
    }
     .certificate-container {
        flex-direction: column; /* Stack certificates vertically */
        align-items: center;
        gap: 15px; /* Adjust spacing between certificates */
    }

    .certificates {
        width: 80%; /* Responsive width for certificates */
    }

    .certificates img {
        width: 100%; /* Ensure images resize to fit the card width */
        height: auto;
    }
     footer .bx-up-arrow-alt {
        display: none;
    }
}

@media(max-width:420px){
    html{
        font-size: 80%;
    }
    .about-title {
        font-size: 20px;
    }
    .about-image {
        width: 100%; /* Take up full width */
        margin-bottom: 15px;
    }
    .about-text {
        font-size: 14px;
    }
    .certificates {
        width: 90%; /* Full width with padding on very small screens */
        padding: 8px;
    }

    .certificates h3 {
        font-size: 16px; /* Adjust font size for headings */
    }

    .certificates p {
        font-size: 12px; /* Smaller font size for descriptions */
    }

    .certificates a {
        font-size: 14px; /* Link font size */
    }

}
