@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

:root {
    --main-color: rgb(65, 191, 65);
    --bg-color: #000000;
    --second-bg-color: #111111;
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}


.logo {
    font-size: 4rem;
    color: var(--main-color);
    font-weight: 800;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav a {
    color: white;
    font-size: 1.8rem;
    margin-left: 3rem;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
    color: var(--main-color);
}

section {
    padding: 8rem 10% 4rem;
    min-height: 100vh;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6rem;
}

.home-img img {
    position: relative;
    /* width: 20vw; */
    height: 400px;
    border-radius: 200px;
    box-shadow: 0 0 25px solid green;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover {
    font-size: 1.8rem;
    font-weight: 500;
    transform: scale(1.06);
}

.home-content h1 {
    font-size: 5rem;
    font-weight: 700;
}

.home-content h3 {
    font-size: 3rem;
    font-weight: 600;
    margin: 1rem 0;
}

.home-content p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.typing-text span::before {
    content: "Web Developer";
    color: var(--main-color);
    animation: changeWords 6s infinite;
}

@keyframes changeWords {

    0%,
    20% {
        content: "Web Developer";
    }

    61%,
    80% {
        content: "Tech Explorer";
    }

    81%,
    100% {
        content: "Problem Solver";
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin: 0.5rem 1rem 0 0;
    border-radius: 4rem;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    font-weight: 600;
    font-size: 1.6rem;
    transition: 0.3s;
}

.btn:hover {
    background: var(--main-color);
    color: black;
    box-shadow: 0 0 10px var(--main-color);
}

.heading {
    text-align: center;
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 4rem;
}

.education {
    background-color: var(--second-bg-color);
}

.timeline-items {
    position: relative;
    max-width: 1000px;
    margin: auto;
    padding-left: 20px;
}

.timeline-items::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 4px;
    background: var(--main-color);
    height: 100%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 2rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: var(--main-color);
    border-radius: 50%;
}

.timeline-date {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.timeline-content {
    background: #1a1a1a;
    border: 2px solid var(--main-color);
    padding: 2rem;
    border-radius: 1rem;
    transition: 0.3s;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--main-color);
}

.timeline-content h3 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1.4rem;
    color: white;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .home {
        flex-direction: column;
    }

    .timeline-item,
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0 !important;
        width: 100%;
    }

    .timeline-items::before {
        left: 20px;
    }

    .timeline-dot {
        left: 10px;
    }
}

/* Skills section */
.skills {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 8rem 0 4rem;
}

.skills .heading {
    text-align: center;
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 4rem;
}

.skills-wrapper {
    width: 66%;
    margin: 0 auto;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.skill-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--main-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.skill-box:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px var(--main-color);
}

.skill-box h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: var(--main-color);
    text-align: center;
}

.skill-box ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.skill-box ul li {
    font-size: 1.6rem;
    padding: 0.5rem 0;
    color: #ccc;
}

/* CONTACT SECTIOC CSS */

.contact {
    background-color: var(--bg-color);
}

.contact h2 {
    margin-bottom: 3rem;
    color: white;
}

.contact form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
}

.contact form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 1rem;
    border: 1px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}

.contact form .input-box input:focus,
.contact form .input-box input:active,
.contact form textarea:focus,
.contact form textarea:active {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--main-color);
    outline: none;
    box-shadow: none;
}

.contact form .btn {
    margin-top: 2rem;
    background-color: rgb(255, 238, 238);
    cursor: pointer;
    color: green;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--second-bg-color);
}

.footer .social {
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}

.footer .social a {
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}

.footer .social a:hover {
    transform: scale(1.02) translateY(-5px);
    background-color: rgba(45, 139, 45,0.9);
    color: rgb(252, 252, 252);
    box-shadow: 0 0 25px var(--main-color);
}

.footer ul {
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li {
    display: inline-block;
    padding: 0 15px;
}

.footer ul li a {
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer .copyright {
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
}


.faq-container {
    background-color: #1c1c1c;
    padding: 3rem;
    margin: 3rem auto;
    max-width: 60%;
    display: none;
    /* initially hidden */
}

.faq-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.faq-question {
    color: #f47e08;
    font-size: 1.7rem;
    font-weight: 500;
    cursor: pointer;
    margin: 20px 0 10px;
}

.faq-answer {
    display: none;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 300;
    color: #47ee73;
}

footer {
    background: #000;
    padding: 30px 20px;
    text-align: center;
}

.social a {
    margin: 0 10px;
    display: inline-block;
}

.list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.list li {
    display: inline;
    margin: 0 15px;
}

.list a {
    text-decoration: none;
    color: #fff;
}

.list a:hover {
    color: #1ba74a;
    transition: 0.3s ease;
}