@font-face {
    font-family: PP mori;
    src: url(assets/ppmori.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: PP mori;
    color: #fff;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
#purple{
    height: 100vh;
    width: 100vw;
    top: 0;
    position: fixed;
    z-index: 100;
    background-color: #EDBFFF;
    opacity: 0;
    display: none;
    transition: opacity ease 1s;
    
}
.cursor{
    height: 20px;
    width: 20px;
    border-radius: 50%;
    position: fixed;
    background-color: #EDBFFF;
    z-index: 8;
    transition: background-image ease 0.5s;
    background-position: center;
    background-size:cover ;
    mix-blend-mode: difference;
}
.main{
    background-color: #0F0D0D;
    cursor: none;
}

.page1{
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 9;
    padding-top: 12vw;
}


#nav{
    height: 55px;
    width: 100%;
    /* background-color: red; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: fixed;
    mix-blend-mode: difference;
    z-index:102;
    font-size: 32px;
    font-weight: 600;
}
#nav img{
    height: 27px;
}
#nav-part2{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#nav #circle{
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background-color: #fff;
}
#nav h4{
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

#nav h4 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, transform 0.3s ease;
}

#nav h4 a:hover {
    color: #EDBFFF;
    transform: translateY(-2px);
}

/* Remove the underline from the first h4 since it's now a link */
/* #nav h4:nth-child(1){
    border-bottom: 1.5px solid #fff;
} */

.page1 h1{
    font-size: 8vw;
    font-weight: 300;
    font-family: PP mori;

    margin-left: 6vw;
    transform-origin: left;
}
.page1 h2{
    font-size: 8vw;
    font-weight: 300;
    transform-origin: left;

    margin-left: 26vw;
}
#Ugly{
    color: #EDBFFF;
}
.page1 video{
    width: 60%;
    margin-top: 10vw;
    position: relative;
    left: 50%;
    transform: translate(-50%,0);
}

.page2{
    min-height: 80vh;
    width: 100%;
    padding: 100px 5vw;
    border-bottom: 2px solid #6c6c6c;
    position: relative;
    z-index: 9;
}

.page2 h1{
    font-size:7vw;
    font-weight: 500;
    color: #111;

}
.page2-container{
    height: 60vh;
    width: 100%;
    /* background-color: red; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 5vw; */
}
.page2-left{
    /* background-color: blue; */
    width: 40%;
}
.page2-right{
    /* background-color: blue; */
    width: 24%;
}
.page2-left h2{
    font-size: 4vw;
    font-weight: 300;
    color: #111;
    line-height: 4vw;
}
.page2-right p{
    font-size: 28px;
    color: #111;
}
.page2-right button{
    width: 100%;
    border-radius: 50px;
    border: none;
    padding: 4px 0;
    background-color: #EDBFFF;
    color: #111;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page2-right button:hover {
    background-color: #d1a8ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 191, 255, 0.3);
}

.page3{
    min-height: 100vh;
    width: 100%;
     padding: 100px 5vw;
    position: relative;
    z-index: 9;
}

.page3 h1{
     font-size:7vw;
    font-weight: 500;
    color: #111;
    
}
.page3-part1{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

}

.page3 {
    min-height: 100vh;
    width: 100%;
    padding: 100px 5vw;
    position: relative;
    z-index: 9;
  
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center;
    align-items: center;
    margin-top: 50px;
}

.project-card {
    height: 350px;
    width: 400px;
    background-color: #db94f8;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    opacity: 0.5;
}

.project-image {
    height: 35%;
    width: 100%;
    overflow: hidden;
    object-fit: cover;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-buttons {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  padding: 50px 40px;
  box-sizing: border-box;
  justify-items: stretch;
  align-items: stretch;
}

.project-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
  border-radius: 18px;
  border: none;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  padding: 0 8px;
  min-height: 48px;
  min-width: 0;
}

.project-btn:hover {
  background: #EDBFFF;
  color: #111;
  box-shadow: 0 4px 16px rgba(237,191,255,0.15);
}

.dark-btns .project-btn {
  background: #111 !important;
  color: #fff !important;
}

.dark-btns .project-btn:hover {
  background: #EDBFFF !important;
  color: #111 !important;
}

.project-btn.live-demo {
  background: #fff;
  color: #111;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(173, 138, 255, 0.04);
}

.project-btn.live-demo:hover {
  background: #EDBFFF;
  color: #111;
}

.dark-btns .project-btn.live-demo {
  background: #111 !important;
  color: #fff !important;
}

.dark-btns .project-btn.live-demo:hover {
  background: #EDBFFF !important;
  color: #111 !important;
}

.page3-part1 img{
    height: 400px;
    margin-top: 160px;
}
.page3-part1 video{
    height: 400px;
    margin-top: 40px;
}
.page4{
    min-height: 100vh;
    width: 100%;
    z-index: 9;
    position: relative;
    padding: 170px 100px;
}
.elem{
    /* background-color: salmon; */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.elem img{
    position: absolute;
    opacity: 0;
    transition: all ease-out 0.5s;
    transform: translateY(10%) rotate(2deg);
}
.elem img:nth-child(1){
    left: 2%;
}
.elem img:nth-child(3){
    right: 5%;
}
.text-div{
    height: 16vh;
    position: relative;
    z-index: 9;
    overflow: hidden;
}
.elem h1{
    font-size: 7.5vw;
    font-weight: 600;
    transition: all ease-out 0.5s;
}

.elem:hover h1{
    transform: translateY(-100%);
    color: #EDBFFF;
}
.elem:hover img{
    opacity: 1;
    transform: translateY(0%) rotate(0deg);

}

.box img {
    display: block;
    margin: 0 auto;
}

.page5{
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 9;
    padding: 140px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page5 h2{
    font-size: 4vw;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 80px;
    text-align: center;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 600px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(237, 191, 255, 0.1);
    border-color: #EDBFFF;
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    color: #EDBFFF;
    min-width: 60px;
    text-align: center;
}

.contact-details h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #fff;
}

.contact-link {
    font-size: 1.2rem;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #EDBFFF;
}

footer{
    height: 90vh;
    width: 100%;
    background-color: #EDBFFF;
}
.a{
    text-decoration: none;
}

.nav-icon {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-icon:hover {
    color: #EDBFFF;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    border: 1px solid rgba(237, 191, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px 20px;
    border-bottom: 1px solid rgba(237, 191, 255, 0.2);
}

.modal-title {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(237, 191, 255, 0.1);
    color: #EDBFFF;
    transform: rotate(90deg);
}

.modal-content {
    padding: 30px 40px 40px;
}

.modal-project {
    display: none;
}

.modal-project.active {
    display: block;
}

.modal-project h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #EDBFFF;
    margin: 0 0 30px 0;
    line-height: 1.3;
}

.project-section {
    margin-bottom: 30px;
}

.project-section h4 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    margin: 0 0 15px 0;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.tech-tag {
    background: linear-gradient(135deg, #EDBFFF 0%, #a18aff 100%);
    color: #111;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237, 191, 255, 0.3);
}

.project-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.project-section li {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.project-section li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #EDBFFF;
    font-weight: bold;
}

/* Scrollbar styling for modal */
.modal::-webkit-scrollbar {
    width: 8px;
}

.modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(237, 191, 255, 0.3);
    border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: rgba(237, 191, 255, 0.5);
}

/* Mobile block overlay */
.mobile-block {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 13, 13, 0.98);
  align-items: center;
  justify-content: center;
}

.mobile-block-content {
  background: rgba(34, 34, 34, 0.95);
  border-radius: 18px;
  padding: 40px 28px;
  box-shadow: 0 8px 32px rgba(237,191,255,0.12);
  text-align: center;
  color: #fff;
  max-width: 90vw;
  margin: 0 auto;
}

.mobile-block-content h2 {
  color: #EDBFFF;
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.mobile-block-content p {
  font-size: 1.2rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .mobile-block {
    display: flex;
  }
  body > *:not(.mobile-block) {
    display: none !important;
  }
}