*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}
:root
{
    --bg-color:#080808;
    --second-bg-color: #131313;
    --text-color: white;
    --main-color: #00ffee;
}
html
{
    font-size: 60%;
    overflow-x: hidden;
}
body
{
    background-color: var(--bg-color);
    color: var(--text-color);
}
.header
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    display:flex;
    justify-content: space-between;
    align-items: center;
    z-index:5;
}
.logo
{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}
.logo:hover
{
    transform: scale(1.1);
}
.logo span
{
    text-shadow: 0 0 25px var(--main-color);
}
.navbar a
{
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  transition: 0.3s ease;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}
.navbar a:hover,.navbar a.active
{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
#menu-icon
{
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}

section
{
    min-height: auto;
    padding: 5rem 12% 5rem;
}
.home
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap:15rem;
}
.home-content
{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;   
}
span
{
    color: var(--main-color);
}
.logo span
{
    color: var(--main-color);
}
.home-content h3
{
    margin-bottom: 2rem;
    font-size: 3.5rem;
    margin-top: 1rem;
}
.home-content h1
{
    font-size: 7rem;
    margin-top: 1.5rem;
    line-height: 1;
    font-weight: 700;
}
.home-image
{
    border-radius: 50%;    
}
.home-image img
{
    position: relative;
    top: 3rem;
    width: 40rem;
    height: 40rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}
.home-image img:hover
{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}
.home-content p
{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}
.social-icon a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}
.social-icon a:hover
{
    background: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 0 25px var(--main-color);
    transform: scale(1.3)translateY(-5px);
}
.btn
{
    display: inline-block;
    padding: 1rem 2.8rem;
    font-size: 1.6rem;
    color:black;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 25px var(--main-color);
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.btn:hover
{
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--main-color);
}
.btn-group
{
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.btn-group a:nth-of-type(2)
{
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-of-type(2):hover
{
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}
.text-animation
{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}
.text-animation span
{
    position: relative;
}
.text-animation span::before
{
  content: "Web Developer";
  color: var(--main-color);
  animation: words 20s infinite;
}
.text-animation span::after
{
  content: "";
  background-color: var(--bg-color);
  position: absolute;
  width: calc(100% +8px);
  height:100%;
  border-left:3px solid var(--bg-color);
  right: -8px;
  animation: cursor 0.6s infinite,typing 20s steps(14) infinite;
}
@keyframes cursor
{
    to
    {
        border-left: 2px solid var(--main-color);
    }
}
@keyframes words
{
    0%,
    20%
    {
        content:"Python Developer";
    }
    21%,
    40%
    {
        content: "Java Developer";
    }
    41%,
    60%
    {
        content: "UI/UX Designer";
    }
    61%,
    80%
    {
        content: "Database Manager";
    }
    81%,
    100%
    {
        content: "AI/ML Engineer";
    }
}
@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);
    }
}
.heading
{
    font-size:8rem;
    text-align: center;
    margin: 5rem 0;
}
.education
{
    padding: 50px 15px;
    background-color: var(--second-bg-color);
}
.education h2{
    margin-bottom:5rem;
}
.timeline-items
{
    max-width :1200px;
    margin:auto;
    display:flex;
    flex-wrap: wrap;
    position:relative; ;
}
.timeline-items::before
{
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left:calc(50% - 1px);
}
.timeline-item
{
    margin-bottom: 40px;
    width:100%;
    position:relative;
}
.timeline-item:last-child
{
    margin-bottom: 0;
}
.timeline-item:nth-child(odd)
{
    padding-right:calc(50% + 30px);
    text-align:right;
}
.timeline-item:nth-child(even)
{
    padding-left: calc(50% + 30px);
}
.timeline-dot
{
    height: 21px;
    width: 21px;
    background-color:var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    position: absolute;
    left:calc(50% - 8px);
    border-radius:50%;
    top:10px;
}
.timeline-date
{
    font-size:20px;
    font-weight:800;
    color:white;
    margin:6px 0 15px;
}
.timeline-content
{
    background-color: var(--bg-color);
    border:3px solid var(--main-color);
    padding:30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.timeline-content:hover
{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}
.timeline-content h3
{
    font-size: 20px;
    color: white;
    margin:0 0 10px;
    font-weight: 500;
}
.timeline-content p
{
    font-size: 16px;
    color: white;
    line-height: 22px;
    font-weight: 300;
}
::-webkit-scrollbar
{
    width: 5px;
}
::-webkit-scrollbar-thumb
{
    background: var(--main-color);
}
::-webkit-scrollbar-track
{
    background-color: var(--bg-color);
}
.about
{
    background-color: var(--second-bg-color);
}
.about-content
{
    background-color: var(--second-bg-color);
    margin-bottom:5rem;
}
.about-text
{
    width:100%;
    position:relative;
    background-color: var(--bg-color);
    border:3px solid var(--main-color);
    padding:30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
/* .about-text:hover
{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
} */
.about-text p
{
    font-size: 15px;
    color: white;
    margin:0 0 10px;
    font-weight: 500;
}
/* Skills Section */
.skills {
    background-color: var(--bg-color);
    padding: 50px 15px;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--second-bg-color);
    padding: 2rem;
    border-radius: 2rem;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
}

.skill-category h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--main-color);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 1rem;
    transition: 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--main-color);
}

.skill-item i {
    font-size: 2.5rem;
    color: var(--main-color);
}

.skill-item span {
    font-size: 1.6rem;
    color: var(--text-color);
}

/* Projects Section */
.projects {
    background-color: var(--second-bg-color);
    padding: 50px 15px;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-color);
    border-radius: 2rem;
    overflow: hidden;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--main-color);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    transition: 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--main-color);
}

.project-content p {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    padding: 0.5rem 1rem;
    background-color: var(--second-bg-color);
    border-radius: 1rem;
    font-size: 1.2rem;
    color: var(--main-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

/* Contact Section */
.contact {
    background-color: var(--bg-color);
    padding: 50px 15px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--second-bg-color);
    border-radius: 2rem;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
}

.contact-item i {
    font-size: 3rem;
    color: var(--main-color);
}

.contact-item h3 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.4rem;
    color: var(--text-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    gap: 1.5rem;
}

.input-group input {
    flex: 1;
    padding: 1.5rem;
    background-color: var(--second-bg-color);
    border: 3px solid var(--main-color);
    border-radius: 1rem;
    color: var(--text-color);
    font-size: 1.4rem;
}

.contact-form textarea {
    padding: 1.5rem;
    background-color: var(--second-bg-color);
    border: 3px solid var(--main-color);
    border-radius: 1rem;
    color: var(--text-color);
    font-size: 1.4rem;
    resize: none;
    height: 200px;
}

.contact-form button {
    align-self: flex-start;
}

/* Responsive Design */
@media (max-width: 1024px) {
    html {
        font-size: 55%;
    }
    .home {
        flex-wrap: wrap;
        gap: 5rem;
        padding: 2rem 5%;
    }
    .home-content {
        flex: 1 1 100%;
        margin-top: 1rem;
        text-align: center;
        align-items: center;
    }
    .home-content h1 {
        font-size: 5rem;
    }
    .home-content h3 {
        font-size: 2.5rem;
    }
    .home-content p {
        font-size: 1.3rem;
        max-width: 100%;
    }
    .home-image {
        flex: 1 1 100%;
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }
    .home-image img {
        width: 30rem;
        height: 30rem;
    }
    .navbar a {
        font-size: 1.5rem;
        margin-left: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%;
    }
    .input-group {
        flex-direction: column;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .skill-items {
        justify-content: center;
    }
    .home-content h1 {
        font-size: 4rem;
    }
    .home-content h3 {
        font-size: 2rem;
    }
    .home-image img {
        width: 25rem;
        height: 25rem;
    }
    .navbar a {
        font-size: 1.3rem;
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 45%;
    }
    .home {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem 3%;
    }
    .home-content {
        align-items: center;
        text-align: center;
    }
    .home-content h1 {
        font-size: 3rem;
    }
    .home-content h3 {
        font-size: 1.5rem;
    }
    .home-content p {
        font-size: 1.1rem;
    }
    .home-image img {
        width: 20rem;
        height: 20rem;
    }
    .navbar a {
        font-size: 1.1rem;
        margin-left: 0.5rem;
    }
    .btn {
        font-size: 1.4rem;
        padding: 0.8rem 2rem;
    }
}
