@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 {
    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;
}

.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: 8%;
    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%,
    20% {
        content: "Web Developer";
    }
    21%,
    40% {
        content: "Developer";
    }
    41%,
    60% {
        content: "Web Designer";
    }
    61%,
    80% {
        content: "Content Creator";
    }
    81%,
    100% {
        content: "Script Writer";
    }
}

@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;
    }
}

.services {
    padding: 50px 0;
}

.services .heading {
    font-size: 5rem;
    margin-bottom: 50px;
    text-align: center;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services-box {
    flex-basis: 300px;
    text-align: center;
    padding: 20px;
    margin: 20px;
}

.services-box i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.services-box h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.services-box p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.skills {
    padding: 50px 0;
    text-align: center;
}

.skills .heading {
    font-size: 3.5rem;
    margin-bottom: 40px;
}

.skill-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.skill-box {
    width: 100%;
    margin-bottom: 30px;
}

.skill-box h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.skill-bar {
    width: 100%;
    background-color: #f0f0f0;
    height: 20px;
    border-radius: 10px;
}

.skill-per {
    height: 20px;
    background-color: #e20707;
    border-radius: 10px;
    position: relative;
}

.skill-per::before {
    content: attr(per);
    position: absolute;
    right: -25px;
    top: -35px;
    font-size: 1.2rem;
    font-weight: bold;
}

.education {
    padding: 50px 0;
    background-color: #000000;
    color: #ffffff;
}

.education .heading {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 50px;
    color: #ffffff;
}

.education-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.education-timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #ff0000;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 6px;
}


/* ... rest of the CSS remains the same ... */

.education-item {
    padding: 20px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.education-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #000000;
    border: 4px solid #ff0000;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.education-item:nth-child(odd) {
    left: 0;
}

.education-item:nth-child(even) {
    left: 50%;
}

.education-item:nth-child(even)::after {
    left: -16px;
}

.edu-logo {
    width: 200px;
    height: 100px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid #ff0000;
    border-radius: 10px;
}

.edu-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.edu-content {
    padding: 30px;
    background-color: #1a1a1a;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.edu-content h3 {
    font-size: 2rem;
    color: #ff0000;
    margin-bottom: 15px;
}

.edu-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
}

.edu-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #1a1a1a;
}

.edu-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #1a1a1a;
}

.achievements {
    padding: 80px 0;
    background: linear-gradient(to bottom, #000000, #1a1a1a);
    color: #ffffff;
}

.achievements .heading {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 60px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.achievements .heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
}

.experience-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.experience-card {
    flex: 0 1 350px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 0, 0, 0.1);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

.experience-card:hover::before {
    opacity: 1;
}

.company-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 3px solid #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.experience-card:hover .company-logo {
    transform: scale(1.1);
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.experience-card h3 {
    font-size: 2.2rem;
    color: #ff0000;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
}

.experience-card h4 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

.experience-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.experience-card ul li {
    color: #cccccc;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 1.4rem;
    line-height: 1.6;
}

.experience-card ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #ff0000;
}


/* Responsive Design */

@media (max-width: 1200px) {
    .experience-container {
        gap: 30px;
    }
    .experience-card {
        flex: 0 1 300px;
    }
}

@media (max-width: 768px) {
    .achievements .heading {
        font-size: 3rem;
    }
    .experience-card {
        flex: 0 1 100%;
        max-width: 400px;
    }
}

.contact {
    padding: 80px 0;
    background-color: #000000;
    color: #ffffff;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact .heading {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 50px;
    color: #ffffff;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 2.2rem;
    color: #ff0000;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info ul li i {
    color: #ff0000;
    margin-right: 10px;
    font-size: 1.3rem;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 5px;
    border: none;
    background-color: #1a1a1a;
    color: #ffffff;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff0000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.contact-form .btn:hover {
    background-color: #cc0000;
}

@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}


/* Sticky animation for "Hi, It's Ajay" */

.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
    position: sticky;
    top: 20px;
    animation: bounce 2s ease infinite;
}

.achievements .heading {
    font-size: 12rem;
    font-weight: 700;
    line-height: 1.3;
    position: sticky;
    top: 20px;
    animation: bounce 2s ease infinite;
}

.heading {
    animation: appear linear;
    animation-timeline: view();
    animation-range-start: 0%;
    animation-range-end: 40%;
}

@keyframes appear {
    from {
        opacity: 0;
        scale: 0;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

.skill-box {
    animation: animationskill linear;
    animation-timeline: view();
    animation-range-start: 0%;
    animation-range-end: 60%;
}

@keyframes animationskill {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.services-box {
    animation: animationservice linear;
    animation-timeline: view();
    animation-range-start: 0%;
    animation-range-end: 30%;
}

@keyframes animationservice {
    from {
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.education-item {
    animation: animationservice linear;
    animation-timeline: view();
    animation-range-start: 0%;
    animation-range-end: 30%;
}

@keyframes animationservice {
    from {
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.experience-card {
    animation: animationexperience linear;
    animation-timeline: view();
    animation-range-start: 0%;
    animation-range-end: 70%;
}

@keyframes animationexperience {
    from {
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.contact-info {
    animation: animationservice linear;
    animation-timeline: view();
    animation-range-start: 0%;
    animation-range-end: 30%;
}

@keyframes animationservice {
    from {
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

#preloader {
    background: #000000 url(/loader.gif) no-repeat center center;
    background-size: 10%;
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 100;
}