@import url('https://fonts.cdnfonts.com/css/devil-breeze');
@import url('https://fonts.cdnfonts.com/css/poppins');
@import url('https://fonts.cdnfonts.com/css/bimbo');
@import url('https://fonts.cdnfonts.com/css/dungeon-depths');



html {
    scroll-behavior: smooth;
    overflow-y: auto;
    overscroll-behavior-y: none;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    background-color: #201a57;
    color: #eef8ce;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background-image:
    url(img/bg.png),
    repeating-linear-gradient(
        to right, transparent 0 500px, #73814B33 500px 501px
    );
    background-size: 100%;
    min-height: 100vh;
    position: relative;
}

*::-webkit-scrollbar {
    width: 0;
}

* {
    padding: 0;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
}
.section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-fit {
    width: min(1200px, 90vw);
    margin: auto;
    min-height: 100vh;
    position: relative;
    padding-block: 10em;
}
header {
    padding-block: 1em;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10px;
    backdrop-filter: blur(20px);
    z-index: 100;
    background-color: #1B1B1B11;
    background-image: repeating-linear-gradient(
        to right, transparent 0 500px, #eee1 500px 501px
    );
}
header .content-fit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: unset!important;
    padding-block: unset!important;
}
header .content-fit nav ul{
    display: flex;
    gap: 2em;
}
header .content-fit nav ul li a {
    color: #eef8ce;
    text-decoration: none;
    transition: color 0.3s ease;
}
header .content-fit nav ul li a:hover {
    color: #d1ff48;
}

#banner {
    position: relative; /* Ensures child elements are positioned relative to the banner */
}

#banner .title-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
}

#banner .subtitle {
    font-family: "devil breeze";
    font-size: 10em;
    font-weight: bold;
    color: #445022;
    text-transform: uppercase;
    position: absolute;
    z-index: 1;
    top: 27%;
    left: 23%;
}


#banner .main-title {
    font-family: "";
    font-size: 9em;
    font-weight: bold;
    color: #d1ff48;
    text-transform: uppercase;
    line-height: 0.8;
    position: absolute; 
    z-index: 2;
    top: 40%;
    left:5%;
}

#banner .main-title::before {
    content: attr(data-before);
    position: absolute;
    top: 0.5em;
    inset: 0.66em 0 0 0;
    z-index: -1;
    color: #445022;
}

#about .content-fit {
    display: flex;
    right: 10%;
    gap: 30%;
    justify-content: space-between;
    align-items: center;
}

#projects .content-fit {
    display: flex;
    right: -2%;
    gap: 30%;
    justify-content: space-between;
    align-items: center;
}
.project-list {
    margin-top: 2em;
    list-style: disc;
    padding-left: 2em;
}

.project-list li {
    font-size: 1.5em;
    margin-bottom: 1em;
    color: #d1ff48;
}

#intro .content-fit {
    display: flex;
    gap: 30%;
    justify-content: space-between;
    align-items: center;
}

.section .content-fit .title {
    font-family: "devil breeze";
    font-size: 5em;
    font-weight: bold;
    /*margin-bottom: 1em;*/
}

.about-container {
    margin-top: 2em;
    max-width: 800px;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 2em;
    align-items: center;
}

.about-card img {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
}

.about-content h3 {
    color: #d1ff48;
    font-size: 1.8em;
    margin-bottom: 0.5em;
}

.about-content p {
    color: #eef8ce;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 1.5em;
}

.about-content .skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
}

.about-content .skills span {
    background: rgba(209, 255, 72, 0.1);
    padding: 0.5em 1em;
    border-radius: 20px;
    font-size: 1em;
    color: #d1ff48;
}

#description .content-fit {
    padding-right: 30%;
}

#description .title {
    font-size: 7em;
    font-weight: 500;
}

#contact .content-fit {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

#contact table {
    width: min(800px, 90vw);
    padding-top: 2em;
    font-size: 2em;
    margin: auto;
}

#contact table td {
    padding-block: 0.5em;
    border-bottom: 1px dashed #445022;
}

#contact table td:nth-child(1) {
    text-align: left;
    font-weight: 500;
}

#contact table td:nth-child(2) {
    text-align: right;
    font-weight: 200;
}

#contact .sign {
    font-family: 'Bimbo', sans-serif;
    font-size: 10em;
}

#container3D {
    position: fixed;
    right: -18%;
    top: 48%;
    transform: translateY(-50%);
    width: 1200px;
    height: 600px;
    z-index: 100;
    pointer-events: none;
}

#container3D canvas {
    width: 100% !important;
    height: 100% !important;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1em;
}

.project-card h3 {
    color: #d1ff48;
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.project-card p {
    color: #eef8ce;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 1em;
}

.project-card .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 1em;
}

.project-card .tech-stack span {
    background: rgba(209, 255, 72, 0.1);
    padding: 0.3em 0.8em;
    border-radius: 15px;
    font-size: 0.9em;
    color: #d1ff48;
}

@media screen and (max-width: 1024px) {
    #banner .subtitle {
        font-size: 7em;
        top: 30%;
        left: 15%;
    }
    
    #banner .main-title {
        font-size: 6em;
        top: 40%;
        left: 10%;
    }

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

    #about .content-fit,
    #projects .content-fit,
    #intro .content-fit {
        gap: 15%;
    }

    #about .content-fit {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2em;
        padding: 2em;
    }

    #about .des {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-container {
        width: 100%;
        max-width: 600px;
        margin: 2em auto;
    }

    .about-card {
        width: 100%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    header .content-fit nav ul {
        gap: 1em;
    }

    .content-fit {
        width: min(95vw, 768px);
        padding-block: 5em;
    }

    #banner .subtitle {
        font-size: 5em;
        top: 35%;
        left: 10%;
    }
    
    #banner .main-title {
        font-size: 4em;
        top: 45%;
        left: 15%;
    }

    .section .content-fit .title {
        font-size: 3.5em;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .about-card {
        padding: 1.5em;
    }

    .about-card img {
        width: 150px;
        height: 150px;
    }

    .phone-social-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5em;
    }

    #about .content-fit {
        padding: 1em;
    }

    .about-container {
        max-width: 100%;
    }

    .about-card {
        margin: 0;
        padding: 1.5em;
    }
}

@media screen and (max-width: 480px) {
    header .content-fit {
        flex-direction: column;
        gap: 1em;
        padding: 1em;
    }

    header .content-fit nav ul {
        gap: 0.8em;
    }

    #banner .subtitle {
        font-size: 3.5em;
        top: 40%;
        left: 5%;
    }
    
    #banner .main-title {
        font-size: 3em;
        top: 50%;
        left: 10%;
    }

    .section .content-fit .title {
        font-size: 2.8em;
    }

    .about-card {
        padding: 1em;
    }

    .about-content h3 {
        font-size: 1.2em;
    }

    .about-content p {
        font-size: 0.9em;
    }

    .skills span {
        font-size: 0.8em;
        padding: 0.3em 0.6em;
    }

    .project-card {
        padding: 1em;
    }

    .project-card h3 {
        font-size: 1.2em;
    }

    .project-card p {
        font-size: 0.9em;
    }

    .tech-stack span {
        font-size: 0.8em;
        padding: 0.3em 0.6em;
    }

    #about .content-fit {
        padding: 1em 0.5em;
    }

    .about-card {
        padding: 1em;
    }
}

@media screen and (max-width: 1023px){
    #banner .subtitle {
        font-size: 3em;
    }
    #banner .main-title {
        font-size: 6em;
    }
}

@media screen and (max-width: 767px){
    #banner .subtitle {
        font-size: 2em;
    }
    #banner .main-title {
        font-size: 4em;
    }
    #about .content-fit {
        flex-direction: column;
    }
    #projects .content-fit {
        padding-right: 0;
    }
    .project-list li {
        font-size: 1.2em;
    }
    #contact table {
        font-size: 1em;
    }
    #container3D {
        width: 60vw;
        height: 40vh;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .project-card {
        padding: 1em;
    }
    .project-card img {
        height: 150px;
    }
    .about-card {
        flex-direction: column;
        padding: 1.5em;
        text-align: center;
    }

    .about-card img {
        width: 150px;
        height: 150px;
    }

    .about-content h3 {
        font-size: 1.5em;
    }

    .about-content .skills {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .phone-social-icons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
        width: 100%;
    }

    .social-icon {
        margin: 0;
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 480px) {
    .phone-social-icons {
        gap: 15px;
        padding: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .social-icon i {
        font-size: 20px;
    }
}

a {
    text-decoration: none;
}

.three-container {
    width: 300px;
    height: 300px;
    margin: 20px auto;
    border: 1px solid #ccc; /* Optional: for visibility */
    border-radius: 10px;    /* Optional: to match the design */
    background: #f5f5f5;    /* Background color */
}

.contact-section {
    padding: 4rem 0;
    background: #201a57;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 0 2rem;
}

.phone-container {
    position: relative;
    max-width: 600px;
}

.phone-image {
    width: 125%;
    height: auto;
    display: block;
    margin-left: -40px;
}

.phone-social-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.social-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Position each icon on the phone screen */
.facebook { top: 60%; left: 27%; }
.twitter { top: 60%; left: 37%; }
.instagram { top: 60%; left: 47%; }
.linkedin { top: 60%; left: 57%; }
.discord { top: 60%; left: 67%; }

.contact-info {
    max-width: 400px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #d1ff48;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #4a90e2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
    }
    
    .phone-container {
        margin-bottom: 2rem;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    /* Adjust icon positions for mobile */
    .facebook { top: 40%; left: 25%; }
    .twitter { top: 50%; left: 55%; }
    .instagram { top: 60%; left: 25%; }
    .linkedin { top: 70%; left: 55%; }
}

.fa-instagram {
    font-size: 30px; /* Adjust size */
}

.fa-github {
    font-size: 30px; /* Adjust size */
}

.fa-discord {
    font-size: 30px; /* Adjust size */
}

.fa-linkedin-in {
    font-size: 30px; /* Adjust size */
}

.fa-twitter {
    font-size: 30px; /* Adjust size */
}

.footer {
    background-color: #f8f8f800;
    text-align: center;
    padding: 20px;
    
    bottom: 0;
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #555;
  }

  .footer a {
    color: #007BFF;         /* Blue color for the link */
    text-decoration: none;  /* Remove underline */
  }
  
  .footer a:hover {
    text-decoration: underline; /* Underline on hover */
  }


  .des{
    margin-left:5%;
  }