@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Annie+Use+Your+Telescope&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: red;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

section {
    padding: 100px 0;
}

.max-width {
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

.about,
.experiences,
.projects,
.contact,
footer {
    font-family: 'Poppins', sans-serif;
}

.about .about-content,
.contact .contact-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

section .title {
    position: relative;
    color: white;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: 'Ubuntu', sans-serif;
}

section .title::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 3px;
    background: #fff;
    transform: translateX(-50%);
}

section .title::after {
    position: absolute;
    bottom: -8px;
    left: 50%;
    font-size: 20px;
    color: crimson;
    padding: 0 5px;
    background: #fff;
    transform: translateX(-50%);
}

li a,
i {
    text-decoration: none;
    font-size: 1.2rem;
}

nav2 {
    position: fixed;
    width: 70px;
    margin-top: 250px;
    box-shadow: 6px 6px 12px 0px rgba(255, 0, 0, 0.5);
    border-radius: 30px;
}

nav2 li {
    height: 55px;
    position: relative;
}

nav2 li a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 55px;
    padding-left: 25px;
    border-bottom: 1px solid #000000;
    border-radius: 30px;
    color: #fff;
    transition: all 0.2s linear;
}

nav2 li a i {
    position: absolute;
    top: 17px;
    left: 30px;
}

nav2 li a span {
    display: none;
}

nav2 li a:hover {
    width: 200px;
    z-index: 1;
    border-radius: 30px;
    border-bottom: 1px sold rgba(0, 0, 0, 0.5);
    box-shadow: 6px 6px 12px 0px rgba(0, 0, 0, 0.5);
}

nav2 li:nth-child(1):hover a {
    background-color: #0A66C2;
}

nav2 li:nth-child(2):hover a {
    background-color: black;
}

nav2 li:nth-child(3):hover a {
    background-color: rgb(211, 3, 3);
}

nav2 li:nth-child(4):hover a {
    background-color: #d62976;
}

nav2 ul li a:hover span {
    display: block;
    padding-left: 40%;
}

.navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 30px 0;
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
}

.navbar.sticky {
    padding: 15px 0;
    background: crimson;
}

.navbar .logo {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.navbar.sticky .logo {
    opacity: 1;
    pointer-events: auto;
}

.navbar .max-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a {
    color: #fff;
    font-size: 35px;
    font-weight: 600;
}

.navbar .menu li {
    list-style: none;
    display: inline-block;
}

.navbar .menu li a {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.navbar .menu li a:hover {
    color: crimson;
}

.navbar.sticky .menu li a:hover {
    color: #fff;
}

.menu-btn {
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    display: none;
}

.scroll-up-btn {
    position: fixed;
    height: 45px;
    width: 45px;
    background: crimson;
    right: 30px;
    bottom: 10px;

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

    color: #fff;
    z-index: 9999;
    font-size: 30px;
    border-radius: 12px;
    cursor: pointer;

    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.scroll-up-btn.show {
    bottom: 40px;
    opacity: 1;
    pointer-events: auto;
}

.scroll-up-btn:hover {
    filter: brightness(90%);
}

.home {
    display: flex;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("images/anotherbg.jpg") no-repeat center;
    background-size: calc(100% + 80px) calc(100% + 80px);
    height: 100vh;
    color: #fff;
    min-height: 500px;
    background-attachment: fixed;
    font-family: 'Ubuntu', sans-serif;
}

.home .max-width {
    width: 100%;
    display: flex;
}

.home .max-width .row {
    margin-right: 0;
}

.home .home-content .text-1 {
    font-size: 27px;
}

.home .home-content .text-2 {
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}

.home .home-content .text-2 span {
    color: crimson;
    font-weight: 500;
}

.home.sticky .text-2 a span {
    color: #fff;
}

.home .home-content .text-3 {
    font-size: 40px;
    margin: 5px 0;
}

.home .home-content .text-3 span {
    color: crimson;
    font-weight: 500;
}

.home .home-content a {
    display: inline-block;
    background: crimson;
    color: #fff;
    font-size: 25px;
    padding: 12px 36px;
    margin-top: 20px;
    font-weight: 400;
    border-radius: 6px;
    border: 2px solid crimson;
    transition: all 0.3s ease;
}

.home .home-content a:hover {
    color: crimson;
    background: none;
}

.about {
    background: #111
}

.about .about-content .left {
    width: 45%;
}

.about .about-content .left img {
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 50%;

}

.about .about-content .right {
    width: 55%;
}

.about .about-content .right .text {
    color: white;
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about .about-content .right .small {
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
}

.about .about-content .right .text span {
    color: crimson;
    font-weight: 500;
}

.about .about-content .right p {
    text-align: justify;
}

.about .about-content .right a {
    display: inline-block;
    background: crimson;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid crimson;
    transition: all 0.3s ease;
}

.about .about-content .right a:hover {
    color: crimson;
    background: none;
}

.experiences,
.projects {
    color: #fff;
    background: #111;
}

.experiences .title::before,
.projects .title::before {
    background: #fff;
}

.experiences .title::after,
.projects .title::after {
    background: #111;
}


.skills-wrapper {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skills-category-title {
    font-size: 15px;
    font-weight: 600;
    color: crimson;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #222;
    border: 1px solid #333;
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-badge i {
    color: crimson;
    font-size: 16px;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    transform: translateY(-2px);
    border-color: crimson;
    background: #2a2a2a;
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.15);
}

.skill-badge:hover i {
    transform: scale(1.1);
}



.projects .title::after {
    content: "";
}

.projects .carousel .card {
    background: #222;
    border-radius: 6px;
    text-align: center;
    overflow: hidden;
    padding: 40px 25px 25px 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.projects .carousel .card:hover {
    background: crimson;
}

.projects .carousel .card .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
    padding: 15px 10px 0px 10px;
    flex: 1;
}

.projects .carousel .card .box a {
    display: flex;
    flex-direction: column;
    color: #fff;
    width: 100%;
    height: 100%;
    flex: 1;
}

.projects .carousel .card:hover .box {
    transform: scale(1.05);
}

.projects .carousel .card .text {
    font-size: 26px;
    font-weight: 500;
    margin: 10px 0 7px 0;
    padding-bottom: 20px;
}

.projects .carousel .card img {
    height: 150px;
    width: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid crimson;
    transition: all 0.3s ease;
}

.projects .carousel .card:hover img {
    border-color: #fff;
}
.projects .carousel .card .box p {
    font-size: 14px;
    color: #aaa;
    text-align: justify;
    margin-bottom: 10px;
}

.projects .carousel .card .box .tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin-top: auto;
    padding-top: 35px;
}

.projects .carousel .card .box .tags .tag {
    font-size: 11.5px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 10px;
    background: #333;
    color: #ea6161;
    border: 1px solid #444;
    transition: all 0.3s ease;
    display: inline-block;
}

.projects .carousel .card:hover .box .tags .tag {
    background: #fff;
    color: crimson;
    border-color: #fff;
}


.owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-dot {
    height: 13px;
    width: 13px;
    margin: 0 5px;
    outline: none !important;
    border-radius: 50%;
    border: 2px solid crimson !important;
    transition: all 0.3s ease;
}

.owl-dot.active {
    width: 35px;
    border-radius: 14px;
}

.owl-dot.active,
.owl-dot:hover {
    background: crimson !important;
}

.contact {
    background-color: #111
}

.contact .title::after {
    content: "Get In Touch";
    background: #111;
}

.contact .contact-content .column {
    width: calc(50% - 30px);
}

.contact .contact-content .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: rgba(236, 236, 236, 0.911);
}

.contact .contact-content .left p {
    text-align: justify;
    color: white;
}

.contact .contact-content .left .icons {
    margin: 10px 0;
}

.contact .contact-content .row {
    display: flex;
    height: 65px;
    align-items: center;
}

.contact .contact-content .row .info {
    color: rgba(236, 236, 236, 0.911);
    margin-left: 30px;
}

.contact .contact-content .row i {
    font-size: 25px;
    color: crimson;
}

.contact .contact-content .info .head {
    font-weight: 600;
    font-size:20px;
}

.contact .contact-content .info .sub-title {
    color: rgb(255, 255, 255);
}

/* Contact Form Styling */
.contact .contact-content .right form {
    width: 100%;
}

.contact .contact-content .right .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: rgba(236, 236, 236, 0.911);
}

.contact-form .fields {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-form .fields .field {
    flex: 1;
}

.contact-form .field {
    width: 100%;
    margin-bottom: 15px;
}

.contact-form .field input,
.contact-form .field textarea {
    width: 100%;
    background: #222;
    border: 1px solid #333;
    padding: 12px 15px;
    color: #fff;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    border-radius: 6px;
    transition: all 0.3s ease;
}

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

.contact-form .field input:focus,
.contact-form .field textarea:focus {
    border-color: crimson;
    background: #2a2a2a;
    box-shadow: 0 0 5px rgba(220, 20, 60, 0.4);
    outline: none;
}

.contact-form .textarea textarea {
    height: 140px;
    resize: none;
}

.contact-form .button-area {
    display: flex;
    justify-content: flex-start;
}

.contact-form .button-area button {
    display: inline-block;
    background: crimson;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 30px;
    border-radius: 6px;
    border: 2px solid crimson;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.contact-form .button-area button:hover {
    color: crimson;
    background: none;
}

.contact-form #form-status {
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    display: none;
    padding: 12px 18px;
    border-radius: 6px;
    text-align: left;
    transition: all 0.3s ease;
}

.contact-form #form-status.sending {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.contact-form #form-status.success {
    display: block;
    background: rgba(46, 196, 182, 0.1);
    border: 1px solid #2ec4b6;
    color: #2ec4b6;
}

.contact-form #form-status.error {
    display: block;
    background: rgba(231, 29, 54, 0.1);
    border: 1px solid #e71d36;
    color: #e71d36;
}

/* About Me GitHub Stats Styling */
.about .about-content .right .github-stats {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
}

.about .about-content .right .github-stats img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

footer {
    position: relative;
    width: 100%;
    background-color: #111;
    min-height: 180px;
    padding: 12px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

footer #cloud-footer {
    opacity: 0.6;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; 
    pointer-events: none; 
    z-index: 1; 
}
@keyframes animate {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 1000px;
    }
}

@keyframes animate2 {
    0% {
        background-position-x: 1000px;
    }

    100% {
        background-position-x: 0;
    }
}

@media (max-width: 1104px) {
    .about .about-content .left img {
        height: 350px;
        width: 350px;
    }
}

@media (max-width: 991px) {
    .max-width {
        padding: 0 50px;
    }
}

@media (max-width: 947px) {
    .home {
        background-attachment: scroll;
        background-size: cover;
    }

    .menu-btn {
        display: block;
        z-index: 999;
    }

    .menu-btn i.active:before {
        content: "\f00d";
    }

    .navbar .menu {
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        top: 0;
        background: #111;
        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease;
    }

    .navbar .menu.active {
        left: 0;
    }

    .navbar .menu li {
        display: block;
    }

    .navbar .menu li a {
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
    }

    .home .home-content .text-2 {
        font-size: 70px;
    }

    .home .home-content .text-3 {
        font-size: 35px;
    }

    .home .home-content a {
        font-size: 23px;
        padding: 10px 30px;
    }

    .max-width {
        max-width: 930px;
    }

    .about .about-content .column {
        width: 100%;
    }

    .about .about-content .left {
        display: flex;
        justify-content: center;
        margin: 0 auto 60px;
    }

    .about .about-content .right {
        flex: 100%;
    }

    .contact .contact-content .column {
        width: 100%;
        margin-bottom: 35px;
    }
}

@media (max-width: 690px) {
    .max-width {
        padding: 0 23px;
    }

    .home .home-content .text-2 {
        font-size: 60px;
    }

    .home .home-content .text-3 {
        font-size: 32px;
    }

    .home .home-content a {
        font-size: 20px;
    }

    
}

@media (max-width: 500px) {
    .home .home-content .text-2 {
        font-size: 50px;
    }

    .home .home-content .text-3 {
        font-size: 27px;
    }

    .about .about-content .right .text {
        font-size: 19px;
    }

    .scroll-up-btn {
        right: 15px;
        bottom: 15px;
        height: 35px;
        width: 35px;
        font-size: 30px;
        line-height: 38px;
    }

    .contact-form .fields {
        flex-direction: column;
        gap: 0;
    }

    .contact-form .fields .field {
        margin-bottom: 15px;
    }
}