* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "width" 100;
}


hr{
    border: none;
    height: 2px;
    background-color: #414040;
    color: #272525;

}

html::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html{
    scroll-behavior: smooth;
    background: linear-gradient(270deg, #571b69, #0f0f23);
    /* background-color: #000; */
    color: rgb(0, 0, 0);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    transition: filter 0.4s ease;
    min-height: 100vh;
}

.main-content{
    padding:0;
    margin:0;
}

.back-video{
    position: fixed;
    right:0;
    bottom:0;
    top:0;
    left:0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    padding: none;
}

.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.bi::before,
[class*=" bi-"]::before,
[class^=bi-]::before {
    display: inline;
    flex-direction: row;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: 400 !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

.icons {
    text-decoration: none;
}

.navbar {
    /* background-color: rgb(76, 52, 97); */
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 15px 10px 15px;
    overflow: hidden;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.navdiv {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
}


.links li {
    list-style-type: none;
    display: inline-block;
}

.links button {
    font-size: 25px;
    font-weight: bold;
    background-color: transparent;
    border: none;
    font-size: x-large;
    padding: 7px;
    border-radius: 7px;
    color: 	#eaeaea;

    &:hover {
        cursor: pointer;
        color: #adadad;
    }

    &:active {
        color: #333;
    }
}

li a {
    color: rgb(245, 245, 245);
    padding: 5px;
    padding-left: 25px;
    padding-right: 25px;
    text-decoration: none;
}

.logo {
    font-size: 30px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: rgb(229, 233, 220);
    transition: transform 0.2s;
    padding: 0%;
    line-height: 10px;
}

.logo:hover {
    transform: scale(1.1);
}

.typewriter {
  color: #fff;
  /* border: solid 2px white; */
  font-family: monospace;
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: .15em solid orange; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0; /* Gives that scrolling effect as the typing happens */
  letter-spacing: .15em; /* Adjust as needed */
  animation: 
    typing 3.5s steps(30, end),
    blink-caret .5s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: orange }
}

.first {
    height: 90vh;
    /* border: 2px solid white; */
    /* padding-left: 15vw; */
    padding-right: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: space-between;
    flex-wrap: wrap;
    /* position: relative; */
}

.pp {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    /* left: 200px;
    top: 200px; */
    align-items: end;
    transition: transform 0.2s;

    &:hover {
        transform: scale(1.1);
        box-shadow: 50%;
    }
}

.intro {
    display: inline-block;
    color: azure;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-indent: 200px;
}

#hello {
    font-size: 40px;

}

#self {
    font-size: 55px;
    font-family: monospace;
    display: inline-block;
    color: rgb(235, 214, 209);
}

#name {
    font-size: 53px;
    letter-spacing: 1px;
    font-family: monospace;
    color: rgb(232, 130, 28);
    font-weight: bold;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}


#prof {
    font-size: 30px;
}

.second {
    height: 100vh;
}

.content a {
    font-size: 2em;
    padding: 5px;
}


.content {
    display: none;
    background-color: rgb(30, 22, 36);
    border-radius: 10px;
    position: absolute;
    top: 70px;
    right: 40px;
    max-width: 10vw;
    min-height: 10vw;
}

.content a:hover {
    background-color: rgb(54, 35, 60);
    border: 2px solid white;
    color: azure;
}

.container:hover .content {
    display: block;
}

.container:active .content {
    display: block;
}

.skills {
    width: 100%;
    padding:10px;
    box-sizing: border-box;
}

.skills h2 {
    margin: 0;
    margin-top: 10px;
    text-align: center;
    /* text-decoration: underline; */
    color: azure;
    font-size: 2.5rem;
}


.skillName {
    font-family: "Huninn", sans-serif;
    font-weight: 800;
    font-style: normal;
}


.project {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.project h2 {
    margin: 0;
    margin-top: 50px;
    text-align: center;
    color: azure;
    font-size: 2.5rem;
}


.ex {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.ex-content {
    text-align: center;
    color: aliceblue;
}

.ex h2 {
    margin: 50px 0 20px 0;
    text-align: center;
    color: azure;
    font-size: 2.5rem;
}

.skdisplay {
    height: auto;
    margin: 20px;
    padding: 10px 10px 10px 10px;
    border: 2px solid rgb(61, 61, 61);
    box-sizing: border-box;
    border-radius: 25px;
    background-color: rgba(0, 0, 0, 0.7);
}

.skdisplay h5 {
    text-align: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    padding: 20px;
    color: rgb(252, 223, 223);
}

.skillInside {
    display: flex;
    flex-direction: column;
    color: aliceblue;
}



.skillInside h6 {
    margin: 0%;
    padding: 0%;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.yellow,
.green {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.yellow {
    background-color: #FFD700;
    /* gold/yellow */
}

.green {
    background-color: #32CD32;
    /* lime green */
}


#projects {
    padding: 2rem 0;
    position: relative;
}

.project h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.1rem;
    color: #fff;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}


.prdisplay {
    position: relative;
    height: auto;
    margin: 1px 20px;
    border-radius: 25px;
    border: solid 2px rgb(53, 53, 53);
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: row;
    gap: 25px;
    padding: 25px 25px 25px 40px;
    /* top, right, bottom, left */
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 28px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}


.prdisplay::-webkit-scrollbar {
    display: none;
}

.projectcard {
    flex: 0 0 auto;
    width: 400px;
    min-height: 400px;
    margin: 10px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background-color: #7d36aab4;
    border-radius: 35px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.spacer-card {
    flex: 0 0 25px;
    /* width of the desired gap */
    height: 1px;
    /* minimal height */
    background: transparent;
    pointer-events: none;
    scroll-snap-align: none;
    /* prevent snap from stopping on spacer */
}

.projectcard:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.dots-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
  position: absolute;
  bottom: 15px;
  left: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background-color: #767de3;
}


.card-image-container {
    position: relative;
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
    object-fit: contain;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transform: scale(1.05); 
    transition: transform 0.5s ease;
    /* border: solid 3px #767de3b4; */
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projectcard:hover .card-overlay {
    opacity: 1;
}

.view-demo-btn,
.view-code-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-demo-btn {
    background: #767de3;
    color: white;
}

.view-code-btn {
    background: white;
    color: #767de3;
}

.view-demo-btn:hover,
.view-code-btn:hover {
    transform: scale(1.05);
}

.card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: white;
    margin: 10px 0;
    font-size: 1.5rem;
}

.card-text {
    color: white;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-btn {
    background: #767de3;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-btn:hover {
    background: #a2a6e2;
    transform: scale(1.1);
}

.project-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #767de3;
    transform: scale(1.2);
}

.exdisplay {
    height: auto;
    margin: 0px 20px;
    border: 2px solid rgb(60, 60, 60);
    border-radius: 25px;
    background-color: rgba(0, 0, 0, 0.7);
    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

.exdisplay a {
    text-decoration: none;
    color: azure;
}

.exdisplay button {
    font-size: 1.5em;
    width: 200px;
    padding: 10px;
    border-radius: 15px;
    background-color: rgb(145, 71, 214);
    border: none;

    &:hover {
        background-color: rgb(96, 46, 143);
    }
}

.bi {
    font-size: xx-large;
    color: black;
    padding-left: 15px;
    padding-right: 15px;
}

body:has(.about-overlay:target) {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}


.about-btn {
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.about-btn:hover~#page-content {
    filter: blur(5px);
}

.about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 5;
}

.about-content {
    color: aliceblue;
    background: transparent;
    padding: 2rem;
    border-radius: 10px;
    min-width: 600px;
    border: none;
    width: 90%;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); */
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.about-overlay:target {
    opacity: 1;
    visibility: visible;
}

.about-overlay:target .about-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    z-index: 1002;
    top: 20px;
    right: 30px;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn::before {
    content: "×";
    font-size: 24px;
}

.skillIcons img {
    width: clamp(40px, 10vw, 80px);
    height: auto;
    display: flex;
    padding: 3px;
    border-radius: none;
    margin: 15px;
    background-color: transparent;
    /* background-color: transparent; */
    transition: transform 0.2s;

    &:hover {
        transform: scale(1.1);
        box-shadow: 50%;
    }
}

.skillIcons {
    max-width: 90vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: auto;
    padding: 0 20px;
    /* border: solid 2px white; */
    height: 6.5em;
    text-align: center;
}

/* Footer Styles */
footer {
    width: 100%;
    background-color: #000;
    color: grey;
    padding: 1rem 0;
    font-family: 'Arial', sans-serif;
}

.footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.parent {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.fdiv1,
.div2 {
    flex: 1;
    min-width: 300px;
}

.fdiv1 {
    text-align: left;
}

.div2 {
    text-align: right;
}

.div3 {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

h4 {
    color: grey;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

a {
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .fdiv1,
    .div2 {
        flex: 100%;
        text-align: center;
    }

    .div2 {
        margin-top: 1.5rem;
    }

    .div3 {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 0 15px;
    }

    h4 {
        font-size: 1.1rem;
    }

    p {
        font-size: 1rem !important;
    }
}

.skillIcons img,
.projectcard img,
.card-logo {
    max-width: 100%;
    height: auto;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 1220px) {
    .first {
        flex-direction: column;
        padding-right: 0;
        height: auto;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .intro {
        text-indent: 0;
        text-align: center;
        margin-bottom: 30px;
    }

    .profile-pic-wrapper {
        order: -1;
        /* Moves the profile pic above the intro */
        margin-bottom: 30px;
    }

    .projectcard {
        overflow: auto;

    }

    ::-webkit-scrollbar {
        width: 8px;
        /* Decreases vertical scrollbar width */
        height: 8px;
        /* Decreases horizontal scrollbar height */
    }

    ::-webkit-scrollbar-track {
        background: rgb(40, 40, 57);
        /* Matches your body background */
    }

    ::-webkit-scrollbar-thumb {
        background: rgb(76, 52, 97);
        /* Matches your navbar color */
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgb(108, 0, 176);
        /* Hover color matches your button hover */
    }
}

@media screen and (max-width: 940px) {

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }

    .close-btn {
        position: absolute;
        z-index: 1002;
        left: 30px;
        font-size: 1.5rem;
        color: white;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.2);
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .close-btn::before {
        content: "<";
        font-size: 50px;
    }

    .about-content {
        color: aliceblue;
        background: transparent;
        padding: 1rem;
        border-radius: 10px;
        min-width: 600px;
        border: none;
        width: 95%;
        /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); */
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }

    .links {
        position: absolute;
        padding: 0;
        top: 55px;
        left: -100%;
        /* background: rgba(255, 255, 255, 0.2); */
        background-color: rgba(0, 0, 0, 0.8);
        /* Semi-transparent white */
        /* backdrop-filter: blur(30px); */
        /* Blur effect behind the element */
        /* -webkit-backdrop-filter: blur(10px); */
        /* For Safari */
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 100;
        height: 100vh;
        overflow-y: auto;
    }

    .links.active {
        left: 0;
    }

    .links li {
        display: block;
        margin: 10px 10px;
        /* left: -20%; */
    }

    .links button {
        color: white;
        font-size: 1.5rem;
        padding: 10px;
        padding-left: 2px;
        padding-top: 20px;
        padding-right: 80%;
        padding-bottom: 20px;
    }

    .links a {
        color: white;
        padding-left: 5px;
        padding-right: 80%;
    }

    /* Adjust skill icons layout */
    .skillIcons {
        height: auto;
        flex-wrap: wrap;
    }


    /* Project cards layout */
    .prdisplay {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
        padding: 15px;
    }

    .prdisplay {
        height: auto;
        /* margin: 10px; */
        /* padding-left: 10px; */
        /* border-radius: 25px; */
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        flex-direction: row;
        gap: 25px;
        padding: 25px;
        overflow-x: scroll;
        overflow-y: hidden;
        align-items: center;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .prdisplay::-webkit-scrollbar {
        display: none;
    }

    .projectcard {
        flex: 0 0 auto;
        width: 400px;
        min-height: 550px;
        max-height: 550px;
        /* margin-left: 10px; */
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background-color: #6e2c97b4;
        border-radius: 35px;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        scroll-snap-align: start;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        cursor: pointer;
    }

    .projectcard {
        width: 100%;
        margin: 15px 0;
    }

    /* About overlay adjustments */
    .about-content {
        min-width: 90%;
        padding: 10px;
    }

    .about-content p {
        font-size: 100px;
    }

    /* Footer adjustments */
    .footer {
        flex-direction: column;
        height: auto;
    }

    .parent {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .fdiv1,
    .div2,
    .div3 {
        margin-bottom: 20px;
    }

    .skdisplay {
        height: auto;
    }

    .skdisplay h2{
        font-size: 18px;;
    }

    .exdisplay {
        height: auto;
    }
}

@media screen and (max-width: 480px) {
    #hello {
        font-size: 35px;
    }

    #self,
    #name {
        font-size: 38px;
        letter-spacing: 0.5px;
    }

    #prof {
        font-size: 24px;
    }

    .pp {
        width: 250px;
        height: 250px;
    }

    .skillIcons img {
        width: 50px;
        margin: 10px;
    }

    .projectcard img {
        width: 100%;
    }

    .about-content {
        color: aliceblue;
        background: transparent;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        height: 90%;
        border: none;
        width: 90%;
        /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); */
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 3rem;
        color: white;
        text-decoration: none;
        background-color: rgba(147, 138, 138, 0.644);
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
}

@media screen and (max-width: 768px) {
    body {
        position: relative;
    }

    /* Ensure all sections have proper padding */
    .first,
    .skdisplay,
    .prdisplay,
    .exdisplay {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Fix for project cards */
    .projectcard {
        width: calc(100% - 30px);
        /* Account for padding */
        margin: 15px;
    }

    /* Fix for images in project cards */
    .projectcard img {
        max-width: 100%;
        height: auto;
    }
}