@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');
 
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
}
/* Global Styles */
body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background-color: black;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

/* Navigation Styles */
main {
    padding-top: 8rem;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}


@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #b74b4b;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0  0 25px #b74b4b;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 5px solid #b74b4b;
    }
}

@keyframes words{
    0%, 20%{
        content: "Web Developer";
    }
    21%, 40%{
        content: "Data Analyst";
    }
    41%, 60%{
        content: "Web Designer";
    }
    61%, 80%{
        content: "Machine Learning Engineer";
    }
    81%, 100%{
        content: "AI Trainer";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}

section h2 {
    font-size: 4rem;
    margin-bottom: 4rem;
    color: #b74b4b;
    text-align: center;
}

.service, .education-item, .experience-item {
    background: #161616;
    border-left: 4px solid #b74b4b;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(183, 75, 75, 0.3);
}

.service h3, .education-item h3, .experience-item h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.service p, .education-item p, .experience-item p {
    font-size: 1.6rem;
    color: #ccc;
}

/* Skills Section */
.skills {
  padding: 5rem 9%;
  background-color: black;
}

.skills h2 {
  font-size: 4rem;
  color: #b74b4b;
  text-align: center;
  margin-bottom: 4rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.skill-card {
  background-color: #161616;
  padding: 2rem;
  border-left: 4px solid #b74b4b;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(183, 75, 75, 0.1);
  text-align: center;
}

.skill-card h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.skill-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.skill-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1); /* white icons */
}

.skill-icons img:hover {
  transform: scale(1.2);
  filter: brightness(0) saturate(100%) sepia(100%) hue-rotate(330deg) brightness(1.1); /* hover red glow */
}

/* Projects Section */
.projects {
    padding: 5rem 9%;
    background-color: black;
}

.projects h2 {
    font-size: 4rem;
    color: #b74b4b;
    text-align: center;
    margin-bottom: 4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: #161616;
    border-left: 4px solid #b74b4b;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(183, 75, 75, 0.1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(183, 75, 75, 0.3);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-card h3 {
    font-size: 2.3rem;
    margin: 1.5rem;
    color: white;
}

.project-card p {
    font-size: 1.5rem;
    color: #ccc;
    margin: 0 1.5rem 2rem;
}

/* Interests Section */
.interests {
  padding: 5rem 9%;
  background-color: black;
  color: white;
}

.interests h2 {
  font-size: 4rem;
  color: #b74b4b;
  text-align: center;
  margin-bottom: 3rem;
}

.interests p {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #ccc;
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
}

.interests blockquote {
  font-size: 1.6rem;
  color: #b74b4b;
  font-style: italic;
  text-align: center;
  border-left: 4px solid #b74b4b;
  padding: 1rem 2rem;
  margin: 0 auto;
  max-width: 700px;
  background-color: #161616;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(183, 75, 75, 0.1);
}

/* Contact Section */
.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact input,
.contact textarea {
    padding: 1.5rem;
    background: #1e1e1e;
    border: 2px solid #b74b4b;
    color: white;
    font-size: 1.6rem;
    border-radius: 1rem;
    resize: none;
}

.contact button {
    padding: 1.5rem;
    font-size: 1.6rem;
    background: transparent;
    color: #b74b4b;
    border: 2px solid #b74b4b;
    border-radius: 4rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact button:hover {
    background: #b74b4b;
    color: black;
    box-shadow: 0 0 15px #b74b4b;
}

footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #111;
    font-size: 1.4rem;
    color: #aaa;
}

footer .social-icons {
    margin-top: 1rem;
}

html {
  scroll-behavior: smooth;
}