:root {
    --primary-color: #323232;
    --secondary-color: #222;
    --text-color: #fff;
}

.lighttheme {
    --primary-color: #d0d0d0;
    --secondary-color: #F2F2F2;
    --text-color: #222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html,
body {
    background-color: var(--primary-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(68px);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: navSlide 1s;
    color: #fff;
}

nav h1 {
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
}

nav h1:hover {
    color: transparent;
    -webkit-text-stroke: 1px #29ff03;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    padding: 0 10px;
}

nav ul li>a {
    text-decoration: none;
    padding: 5px 10px;
    font-size: 18px;
    transition: all 0.3s ease;
    color: #fff;
}

nav ul li a:hover {
    border-bottom: 3px solid #29ff03;
    color: #29ff03;
}

nav ul li i {
    font-size: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

#home {
    background-image: url(Pics/blob-haikei.svg);
    color: #fff;
}

section {
    padding: 100px 20px 60px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    backdrop-filter: blur(68px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s;
    -webkit-text-stroke: 0.2px black;
}

.content1 h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.content1 p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.Muntazir {
    color: #29ff03;
}

.download-cv {
    display: inline-block;
    padding: 12px 25px;
    color: #29ff03;
    border: 2px solid #29ff03;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    background: var(--text-color);
}

.download-cv:hover {
    background: #222;
    color: #fff;
}

.content2 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.backobject {
    width: 375px;
    height: 375px;
    border-radius: 50%;
    border: 2px solid #29ff03;
    overflow: hidden;
    background: linear-gradient(to bottom, #29ff03 40%, #29ff0333);
    display: flex;
    justify-content: center;
}

.backobject img {
    height: 100%;
    transition: 0.8s;
    transform: scale(0.7);
}

.backobject:hover img {
    transform: scale(1);
}

#skills {
    background: url(Pics/circle-scatter-haikei\ \(2\).svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    -webkit-text-stroke: 0.2px black;
    grid-template-columns: 1fr;
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(312px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-heading {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.project-heading h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding: 0 10px;
}

.project-heading h2::before,
.project-heading h2::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 3px;
    width: 50px;
    background: linear-gradient(90deg, transparent, #29ff03);
    transform: translateY(-50%);
}

.project-heading h2::before {
    right: 100%;
}

.project-heading h2::after {
    left: 100%;
    background: linear-gradient(90deg, #29ff03, transparent);
}

.project-heading h2 span {
    color: #29ff03;
    text-shadow: 0 0 10px rgba(41, 255, 3, 0.3);
}

.hrline {
    height: 4px;
    width: 100px;
    background: linear-gradient(to right, transparent, #29ff03, transparent);
    border: none;
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.hrline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.project-card {
    background-color: var(--primary-color);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 200px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--secondary-color);
}

.project-content {
    padding: 20px;
    background-color: var(--secondary-color);
}

.project-content h3 {
    color: var(--text-color);
    font-size: 22px;
    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 80px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-btn {
    padding: 10px 20px;
    background-color: transparent;
    color: #29ff03;
    border: 2px solid #29ff03;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.project-btn:hover {
    background-color: #29ff03;
    color: var(--secondary-color);
}

.share-icons {
    position: absolute;
    right: 40px;
    bottom: 40px;
    list-style: none;
}

.share-icons li {
    margin-bottom: 15px;
}

.share-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.share-icons a:hover {
    background-color: #29ff03;
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.project-items,
.projectlinks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.skillcards,
.links {
    backdrop-filter: blur(68px);
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s ease;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid #222;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#giticon {
    color: #f34f29;
    font-size: 80px;
}

#skills .container {
    grid-template-columns: 1fr;
}

.skillcards:hover,
.links:hover {
    transform: translateY(-5px);
}

.skillcards .image {
    text-align: center;
    margin-bottom: 20px;
}

#htmlicon {
    color: #de9902;
    font-size: 80px;
}

#cssicon {
    color: #457ca5;
    font-size: 80px;
}

#javascripticon {
    color: yellow;
    font-size: 80px;
}

#giticon {
    color: #f34f29;
    font-size: 80px;
}

.skill-level {
    margin-top: 15px;
}

.level-bar {
    height: 8px;
    background-color: rgba(0, 0,0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.level-progress {
    height: 100%;
    background-color: #29ff03;
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.skill-level span {
    float: right;
    font-weight: bold;
}

.links .image {
    height: 200px;
    background: var(--bg-image) no-repeat center/contain;
    margin-bottom: 20px;
}

.links .name {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.links .project-desc {
    text-align: center;
    line-height: 1.5;
}

#aboutme{
    background-color: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-item strong {
    color: #29ff03;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, #29ff03, #00a86b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
    margin: 0 auto;
}

footer {
    background-color: var(--secondary-color);
    padding: 50px 0 20px;
}

#footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info h3,
.contact-form h3 {
    color: #29ff03;
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    color: #29ff03;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #29ff03;
}

.contact-form button {
    padding: 12px 25px;
    background-color: transparent;
    color: #29ff03;
    border: 2px solid #29ff03;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: #29ff03;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #29ff03;
    color: var(--secondary-color);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #29ff03;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .share-icons {
        position: relative;
        display: flex;
        justify-content: center;
        right: 0;
        bottom: 0;
        margin-top: 30px;
    }

    .share-icons li {
        margin: 0 5px 0 0;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 10px 15px;
    }

    nav h1 {
        font-size: 24px;
        margin-left: 0;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        cursor: pointer;
        z-index: 1000;
        transition: all 0.3s ease;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 2.5px 0;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .hamburger.active {
        position: fixed;
        right: 15px;
        top: 15px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: #29ff03;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
        background-color: #29ff03;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 999;
        margin: 0;
        padding: 0;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
        color: var(--text-color);
    }

    nav ul li a {
        display: block;
        padding: 15px;
        font-size: 18px;
        font-weight: 600;
        border-radius: 0;
        transition: all 0.3s ease;
        color: var(--text-color);
    }

    nav ul li a:hover {
        background-color: rgba(41, 255, 3, 0.1);
        border-bottom: none;
        transform: translateX(5px);
    }

    nav ul li:last-child {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Overlay when menu is open */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 998;
        pointer-events: all;
    }

    .backobject {
        width: 280px;
        height: 280px;
    }

    /* Projects heading adjustments for mobile */
    .project-heading h2 {
        font-size: 2.2rem;
    }

    .project-heading h2::before,
    .project-heading h2::after {
        width: 30px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 8px 10px;
    }

    nav h1 {
        font-size: 20px;
    }

    .hamburger {
        width: 25px;
        height: 25px;
    }

    .hamburger span {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }

    .hamburger.active {
        right: 10px;
        top: 12px;
    }

    nav ul {
        width: 85%;
        max-width: none;
    }

    nav ul li a {
        padding: 12px;
        font-size: 16px;
    }

    .container {
        padding: 20px;
        margin: 15px;
    }

    .content1,
    .content2 {
        padding: 20px;
    }

    .content1 h1 {
        font-size: 28px;
    }

    .content1 p {
        font-size: 16px;
    }

    .backobject {
        width: 220px;
        height: 220px;
    }

    .share-icons {
        position: relative;
        display: flex;
        justify-content: center;
        margin-top: 25px;
        right: 0;
        bottom: 0;
    }

    .share-icons li {
        margin: 0 8px;
    }

    .share-icons a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .project-heading h2 {
        font-size: 1.8rem;
    }

    .project-heading h2::before,
    .project-heading h2::after {
        width: 20px;
    }

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

    .project-card {
        margin-bottom: 10px;
    }

    .project-image {
        height: 160px;
    }

    .project-content {
        padding: 15px;
    }

    .project-content h3 {
        font-size: 20px;
    }

    .project-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .image-placeholder {
        width: 150px;
        height: 150px;
        font-size: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-item {
        font-size: 14px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

}

@media (max-width: 375px) {
    .skillcards {
        width: 88%;
    }
}

@keyframes navSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-thumb {
    background-color: #29ff03;
    border-radius: 20px;
}