* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: "Roboto";
}

:root {
    --bg-color: #080808;
    --second-bg-color: #101010;
    --text-color: white;
    --main-color: rgb(139, 0, 0);
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* HEADER */

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 4rem 15%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

#menu-icon {
    font-size: 3.5rem;
    color: var(--main-color);
    display: none;
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

span {
    background: linear-gradient(
        270deg,
        rgb(255, 81, 0) 10%,
        red 100%
    );

    background-clip: text;
    color: transparent;
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}

.navbar a:hover {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

.gradiant-btn {
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;

    background: linear-gradient(
        270deg,
        rgb(255, 102, 0) 10%,
        red 100%
    );

    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: white;
    border: None;
    text-wrap: nowrap;
}

.gradiant-btn:hover {
    transform: scale(1.05)
}

/* SECTION: HOME */

section {
    min-height: 100vh;
    padding: 10rem 15%;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.home-content h1 {
    font-size: 8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-content h3 {
    margin: 1rem 0;
    font-size: 4rem;
}

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
}

.home-img img {
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color); 
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 0.5rem;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    background-color: var(--main-color);
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
}

.btn-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: black;
    border: 2px solid transparent;
    font-weight: 600;
    transition: 0.3s ease-in-out;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--main-color);
    background: var(--main-color);
    color: black;
}

/* SECTION: About Me */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    background: var(--second-bg-color);
}

.about-img img {
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.3s ease-in-out;
}

.about-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color); 
}

.about-content h2 {
    font-size: 7rem;
    text-align: left;
}

.about-content p {
    font-size: 1.8rem;
}

.about-content .btn {
    margin: 3rem 0;
}

::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

.heading {
    text-align: center;
    font-size: 7rem;
    margin: 5rem 0;
}

.learn {
    background-color: var(--bg-color);
    color: black;
}

.learn h2 {
    color: var(--text-color);
}

.learn-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 2.5rem;
}

.learn-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    height: 600px;
    border-radius: 3rem;
    cursor: pointer;
    border: 5px solid transparent;
    transition: 0.3s ease-in-out;
}

.learn-box:hover {
    background: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}

.learn-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 5rem;
}
.learn-item h4 {
    font-size: 4rem;
    margin: 2rem 0;
    font-weight: 800;
}
.learn-item p {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.7;
}
.learn-item i{
    font-size: 8rem;
}

/* SECTION: Contact */

.contact {
    background: var(--bg-color);
}

.contact h2 {
    margin-bottom: 3rem;
    color: var(--text-color);
}

.contact form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem 0;
    text-align: center;
}

.contact form .input-box input, .contact form textarea {
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem;
    resize: none;
}

.footer {
    background-color: var(--second-bg-color);
    padding: 50px 0;
}

.footer .social-icons {
    text-align: center;
}

.footer ul {
    text-align: center;
    font-size: 1.8rem;
}

.footer ul li {
    display: inline-block;
    margin-left: 20px;
}

.footer ul li a {
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3 ease-in-out;
}

.footer ul li a:hover {
    border-bottom: 3px solid var(--main-color);
}

.footer .copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}

/* TIMELINE */
.heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

.timeline {
    padding: 100px 15px;
    background: var(--second-bg-color);
}

.timeline h2 {
    margin-bottom: 5rem;
}

.timeline-items {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}

.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    top: 10px;
    border-radius: 50%
}

.timeline-date {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 6px 0 15px;
}

.timeline-content {
    background-color: var(--bg-color);
    border: 3px solid var(main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3 {
    font-size: 20px;
    color: white;
    margin: 0 0 10px;
    font-weight: 500;
}

.timeline-content p {
    color: white;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}

@media(max-width:1285px) {
    #menu-icon {
        display: block;
    }

    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3rem;
        background: rgba(0,0,0,0.8);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .navbar.active{
        display: block;
    }

    .gradiant-btn {
        display: none;
    }

    .home {
        flex-direction: column-reverse;
        margin: 5rem 0;
        gap: 5rem;
    }

    .home-content {
        align-items: center;
        text-align: center;
    }

    .home-img img {
        width: 45vw;
    }

    .about {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about h2 {
        text-align: center;
        margin: 2rem 0;
    }

    .about img {
        width: 52vw;
        display: none;
    }

    .contact form {
        flex-direction: column;
    }
}

@media(max-width: 991px) {
    .timeline-items::before {
        left: 7px;
    }
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }
    .timeline-item:nth-child(odd), 
    .timeline-item:nth-child(even){
        padding-left: 37px;
    }

    .timeline-dot {
        left: 0;
    }
}

/* OTHER PAGES */

.construction {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'roboto';
}

.construction .box {
    width: 80%;
    height: 80%;
    text-align: center;
    border-radius: 10px;
    font-size: 16px;
}

.construction .box p {
    padding: 10px;
}

/* Project Page */
.project-heading {
    margin-bottom: 50px;
}

.project-heading p{
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 3px solid var(--main-color);
}

.carousel {
    margin: 100px auto;
    width: 90%;
    border: 5px solid var(--main-color);
    border-top: none;
    border-bottom: none;
    display: flex;
    overflow-x: auto;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    animation: spin 5s infinite linear;
    padding-right: 1em;
}
.card {
    flex: 0 0 5em;
    height: 5em;
    padding: 1em;
    background: var(--second-bg-color);
    font-size: 3rem;
    border-radius: .2em;
    text-align: center;
    align-content: center;
}

@keyframes spin {
    from {translate: 0;}
    to {translate: -100%;}
}

.buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    transform: scale(1.5);
}

.btn2 {
    margin: 0px 5px;
    padding: 1em 2em;
    border: none;
    background-color: var(--second-bg-color);
    color: var(--text-color);
    border-radius: 1000px;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}

.btn2::after {
    content:'';
    position: absolute;
    height: 107%;
    width: 102%;
    border-radius: 1000px;
    background-image: linear-gradient(270deg,
        rgb(255, 102, 0),
        red);
    z-index: -1;
}

.btn2:hover {
    z-index: 0;
    box-shadow: 40px 0 100px rgb(255, 102, 0) 25%, -40px 0 100px red 25%;

}

.btn3 {
    margin: 0px 5px;
    padding: 1em 2em;
    border: none;
    background-color: var(--second-bg-color);
    color: var(--text-color);
    border-radius: 1000px;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}

.btn3::after {
    content:'';
    position: absolute;
    height: 107%;
    width: 102%;
    border-radius: 1000px;
    background-image: linear-gradient(270deg,
        rgb(0, 110, 255),
        rgb(132, 0, 255));
    z-index: -1;
}

.btn3:hover {
    z-index: 0;
    box-shadow: 40px 0 100px rgb(0, 110, 255) 25%, -40px 0 100px rgb(132,0,255) 25%;

}

.btn4 {
    margin: 0px 5px;
    padding: 1em 2em;
    border: none;
    background-color: var(--second-bg-color);
    color: var(--text-color);
    border-radius: 1000px;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}

.btn4::after {
    content:'';
    position: absolute;
    height: 107%;
    width: 102%;
    border-radius: 1000px;
    background-image: linear-gradient(270deg,
        green,
        rgb(83, 128, 0));
    z-index: -1;
}

.btn4:hover {
    z-index: 0;
    box-shadow: 40px 0 100px green 25%, -40px 0 100px rgb(83, 128, 0) 25%;

}

@media(max-width: 700px) {
    .buttons {
        flex-direction: column;
    }

    .btn2, .btn3, .btn4 {
        margin-bottom: 15px;
    }
}

/* Skills Page */
.skills-container {
    margin: auto;
    max-width: 1000px;
    padding: 40px;
    text-align: center;
}

.category-title {
    border-bottom: 2px solid var(--main-color);
    color: var(--text-color);
    display: inline-block;
    font-size: 1.8rem;
    margin: 30px 0 20px;
    padding-bottom: 5px;
}

.skills-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 20px;
}

.skill-card {
    background-color: var(--second-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--bg-color);
    color: #e6e6e6;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
    padding: 5rem
}

.skill-card:hover {
    transform: scale(1.1);
    border: 3px solid var(--main-color);
}

.skill-icon {
    color: var(--main-color);
    font-size: 5rem;
    margin-bottom: 10px;
}

.skill-name {
    display: flex;
    justify-content: center;
}

h3 {
    font-size: 1.17em;
    font-weight:bold;
}

.skill-description {
    font-size: .9rem;
}

/* About Page */

.about-info {
    margin-top: 10px;
    border-bottom: 3px solid var(--main-color);
}

p {
    margin-top: 3px;
    margin-bottom: 3px;
}