@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%;
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.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 {
    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: 3px solid #b74b4b;
    }
}

@keyframes words {

    0%,
    33% {
        content: "Web Developer";
    }

    34%,
    66% {
        content: "Developer";
    }

    67%,
    100% {
        content: "Web Designer";
    }

}

@media (max-width: 1000px) {
    .home {
        gap: 4rem;
    }
}

@media(max-width:995px) {
    .home {
        flex-direction: column;
        margin: 1rem 2rem;
        padding-top: 2rem;
    }

    .home .home-content h3 {
        font-size: 2.5rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 4rem;
}

.about {
    background-color: #0a0a0a;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #ccc;
}

.skills {
    background-color: black;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid #222;
    transition: 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: #b74b4b;
}

.skill-category h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #b74b4b;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background-color: #222;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    transition: 0.3s ease;
}

.skill-tag:hover {
    background-color: #b74b4b;
}

.experience,
.education {
    background-color: #0a0a0a;
}

.education {
    background-color: black;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #b74b4b, #444);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #b74b4b, #8a3636);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-content {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    padding: 2.5rem;
    border-radius: 1.5rem;
    flex: 1;
    border: 1px solid #222;
    transition: 0.3s ease;
}

.timeline-content:hover {
    border-color: #b74b4b;
}

.timeline-content h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content .company {
    display: block;
    font-size: 1.4rem;
    color: #b74b4b;
    margin-bottom: 0.3rem;
}

.timeline-content .date {
    display: block;
    font-size: 1.3rem;
    color: #888;
    margin-bottom: 1rem;
}

.timeline-content .grade {
    display: block;
    font-size: 1.4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.timeline-link {
    display: inline-block;
    font-size: 1.4rem;
    color: #b74b4b;
    margin-bottom: 1.5rem;
    transition: 0.3s ease;
}

.timeline-link:hover {
    color: #fff;
}

.timeline-content .skill-tags {
    margin-top: 1rem;
}

.projects {
    background-color: #0a0a0a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid #222;
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #b74b4b;
    box-shadow: 0 20px 40px rgba(183, 75, 75, 0.1);
}

.project-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #b74b4b, #8a3636);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
}

.project-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-card p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.project-link {
    display: inline-block;
    font-size: 1.4rem;
    color: #b74b4b;
    margin-bottom: 1.5rem;
    transition: 0.3s ease;
}

.project-link:hover {
    color: #fff;
}

.contact {
    background-color: black;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-item i {
    font-size: 2.5rem;
    color: #b74b4b;
    width: 40px;
}

.contact-item h4 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.contact-item p,
.contact-item a {
    font-size: 1.4rem;
    color: #ccc;
    transition: 0.3s ease;
}

.contact-item a:hover {
    color: #b74b4b;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.5rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.8rem;
    color: white;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #b74b4b;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #666;
}

.contact-form button {
    align-self: flex-start;
}

footer {
    background-color: #0a0a0a;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #222;
}

footer p {
    font-size: 1.4rem;
    color: #888;
}

@media (max-width: 768px) {
    .heading {
        font-size: 3.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}