*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
}

html {
    font-size: 62.5%;
}

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 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: #fff;
    padding: 5px;
}

.nav-link.active::after {
    content: " ";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: #ff4d4d;
    transition: width 0.3s ease-in-out;
}

.nav-link.active::after {
    width: 100%;
}

.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: 2rem;
    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: 2rem;
}

.home-img {
    border-radius: 50%;
}

.home-img img {
    position: relative;
    width: 400px;
    height: auto;
    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;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.1rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
    margin: 2rem 0 0;
}

.btn:hover {
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text {
    font-size: 40px;
    font-weight: 600;
    min-width: 250px;
}

.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: 3px solid #b74b4b;
    }
}

@keyframes words {
    0%,
    20% {
        content: "Web Developer";
    }
    20%,
    40% {
        content: "Software Developer";
    }
    40%,
    60% {
        content: "Web Designer";
    }
    60%,
    80% {
        content: "Content Creator";
    }
    80%,
    100% {
        content: "Business Man";
    }
}

@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;
    }
}

/* About Me Section */
#about {
    padding: 60px 20px;
    background-color: #1c1c1c;
    color: #fff;
    text-align: center;
}
#about .container {
    max-width: 900px;
    margin: auto;
}
#about h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ff4d4d;
}
#about p {
    font-size: 2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}
#about .tools {
    margin-top: 2px;
}
#about .tools img {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2 rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}
#about .tools img:hover {
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

/* Skills Section */
#skills {
    padding: 60px 20px;
    background-color: #262626;
    color: #fff;
    padding-bottom: 80px;
}
#skills .container {
    max-width: 900px;
    margin: auto;
}
#skills h2 {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 40px;
    color: #ff4d4d;
}
.hard-skills {
    margin-bottom: 10px;
    font-size: 2rem;
}
.skill {
    margin: 10px 0;
}
.skill span {
    font-weight: bold;
    font-size: 1.5rem;
}
.progress{
    background: #444;
    border-radius: 10px;
    overflow: hidden;
    height: 15px;
    margin-top: 5px;
}
.progress-bar{
    background: #ff4d4d;
    height: 100%;
    width: 0;
    transition: width 2s ease-in-out;
}
.soft-skills ul {
    list-style: none;
    padding: 5;
}
.soft-skills h3 {
    margin-top: 40px;
    font-size: 2rem;
    margin-bottom: 10px;
}
.soft-skills ul li {
    background: #333;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    font-size: 1.8rem;
}

/* Education & Experience Section */
#education-experience {
    padding: 60px 20px;
    background-color: #1c1c1c;
    color: #fff;
    text-align: center;
    padding-top: 80px;
}

#education-experience .container {
    max-width: 900px;
    margin: auto;
}

#education-experience h2 {
    font-size: 4rem;
    margin-bottom: 40px;
    color: #ff4d4d;
}

#education-experience h3 {
    font-size: 2.5rem;
    margin: 20px 0;
    color: #b74b4b;
}

#education-experience .card {
    background: #262626;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#education-experience .card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px #b74b4b;
}

#education-experience .card h4 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

#education-experience .card p {
    font-size: 1.6rem;
    margin: 5px 0;
    line-height: 1.5;
}

/* Projects Section */
#projects {
    padding: 60px 20px;
    background-color: #1c1c1c;
    color: #fff;
    text-align: center;
    padding-top: 80px;
    flex-wrap: wrap;
    gap: 20px;
}

#projects h2 {
    font-size: 4rem;
    margin-bottom: 40px;
    color: #ff4d4d;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-card {
    background: #262626;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 300px;
    max-width: 400px;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px #b74b4b;
}

.project-figma img {
    width: 120px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.project-figma {
    width: 120px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    object-fit: cover;
}

.project-wordpress {
    width: 100%;
    max-width: 350px;
    height: 200px;
    object-fit: contain;
}

.project-info h3 {
    font-size: 2.5rem;
    margin: 20px 0;
    color: #b74b4b;
}

.project-info p {
    font-size: 1.6rem;
    margin: 5px 0;
    line-height: 1.5;
}

.project-info a {
  color: #b74b4b;
  text-decoration: none;
  font-size: 14px;
}

.project-info a:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px #b74b4b;
}

.project-status {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #b74b4b;
    color: #b74b4b;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Contact Section */
#contact {
  padding: 60px 20px;
  background-color: #262626;
  color: #fff;
  text-align: center;
  padding-top: 80px;
}

#contact h2 {
  font-size: 4rem;
  margin-bottom: 40px;
  color: #ff4d4d;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border-radius: 8px;
  border: none;
  font-size: 1.6rem;
}

.contact-form button {
  align-self: flex-start;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2 rem 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;
}

.contact-info {
  margin-top: 20px;
  font-size: 1.6rem;
}

.contact-info a {
  color: #b74b4b;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #1c1c1c;
  text-align: center;
  padding: 40px 20px;
  font-size: 18px;
  font-weight: 500;
  color: #aaa;
}

footer p {
    margin-bottom: 15px;
}

footer .footer-links a {
  color: #ff4d4d;
  margin: 0 10px;
  font-size: 17px;
  text-decoration: none;
}

footer .footer-links a:hover {
  text-decoration: underline;
}

html {
    scroll-behavior: smooth;
}