@font-face {
    font-family: nb;
    src: url(./JosefinSans-Bold.ttf);
}

@font-face {
    font-family: nb2;
    src: url(./JosefinSans/JosefinSans-Light.ttf);
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: nb;
}

html, body{
    height:100%;
    width: 100%;
}

#page1{
    height:100vh;
    width: 100%;
    background-color: #dadada;
    position: relative;

}
#cursor{
    height:7.5vw;
    width: 7.5vw;
    background-color: #ff8d6a;
    border-radius: 50%;
    position: fixed;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%,-50%);
}

#cursor h5{
    font-size: 1.2vw;
    font-weight: 500;
}

#page1 video{
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;

}

#page1-content{
    height:100%;
    width: 100%;
    position: relative;
    z-index: 20;
    color: #fff;
    display: flex;
    align-items: center;
    flex-direction:column;
    justify-content: space-between;
    padding-top: 5vw;
}

nav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display:flex;
    align-items:center;
    justify-content: space-between;
    width: 100%;
    padding: 2vw 3vw;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

nav h3{
    position: fixed;
    top: 2vw;
    left: 3vw;
    z-index: 101;
    font-size: 1.4vw;
    font-weight: 100;
    color: #333;
    margin: 0;
}

/* Special styling for navigation on landing page */
#page1 nav{
    background: transparent;
    border-bottom: none;
}

#page1 nav h3,
#page1 .nav-menu a{
    color: #fff;
}

/* Solid nav when scrolled past landing */
nav.nav-solid{
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

nav.nav-solid h3,
nav.nav-solid .nav-menu a{
    color: #333;
}

nav h3{
    font-size: 1.4vw;
    font-weight: 100;
    color: #333;
}

.nav-menu{
    display: flex;
    align-items: center;
    gap: 2vw;
    margin-left: auto;
}

.nav-menu a{
    color: #333;
    text-decoration: none;
    font-size: 1vw;
    font-weight: 300;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.nav-menu a:hover{
    opacity: 1;
    color: #FF5F38;
}

nav h4{
    font-size: 1.4vw;
    font-weight: 100;
    margin-left: 1vw;
}

#page1-content h1{
    font-size:4vw;
    font-weight: 500;
    line-height: 4.5vw;
}

#page-content h1 span{
    font-family: nb;
    
}


#page2{
    height: 10vw;
    width:100%;
    /*background-color: beige; */
    position: relative;
    padding: 5vw 2.8vw;
}

#page2-top{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 1.2vw;
    margin-bottom: 1vw;
    border-bottom: 1px solid #00000092;
}

#page2-top h3{
    font-size: 1.7vw;
    font-weight: 500;
    width: 26%;
    
    
}

#page2-top h4{
    font-size: 1.7vw;
    font-weight: 500;
}

.elem{
    overflow: hidden;
}

.elem h1{
    font-size: 4.2vw;
    font-weight: 500;
}

#page3{
    min-height: 100vh;
    width:100%;
    position: relative;
    padding: 5vw 3vw;
}

#page3-top{
    text-align: center;
    margin-bottom: 4vw;
}

#page3-top h2{
    font-size: 4vw;
    font-weight: 500;
    margin-bottom: 1vw;
}

#page3-top h4{
    font-size: 1.2vw;
    font-weight: 300;
    color: #666;
}

#portfolio-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5vw;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card{
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.project-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
}

.project-image{
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

.project-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img{
    transform: scale(1.05);
}

.project-info{
    padding: 1vw 0.5vw;
    color: #333;
}

.project-info h3{
    font-size: 1.3vw;
    font-weight: 500;
    margin-bottom: 0.4vw;
    color: #111;
}

.project-info p{
    font-size: 0.95vw;
    color: #666;
    font-weight: 300;
}

/* Modal Styles */
.modal{
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow-y: auto;
}

.modal-content{
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    color: #fff;
}

.close{
    position: fixed;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(255,255,255,0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.close:hover{
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.modal-header{
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-cover{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.modal-title{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    padding: 3vw 4vw;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.modal-title h2{
    font-size: 4vw;
    font-weight: 500;
    margin: 0;
    color: #fff;
}

.modal-body{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 4vw;
    z-index: 10;
}

.modal-body p{
    font-size: 1.2vw;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 3vw;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.modal-gallery{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
    max-width: 1000px;
    margin: 0 auto;
}

.modal-gallery img{
    width: 100%;
    height: 20vw;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.modal-gallery img:hover{
    transform: scale(1.05);
}

@media(max-width: 768px){
    #portfolio-grid{
    grid-template-columns: repeat(2, 1fr);
        gap: 2vw;
    }
    
    .project-image{
        aspect-ratio: 4/3;
    }
    
    .project-info h3{
        font-size: 2vw;
    }
    
    .project-info p{
        font-size: 1.4vw;
    }
    
    .modal-title h2{
        font-size: 6vw;
    }
    
    .modal-body p{
        font-size: 2.2vw;
    }
    
    .modal-gallery{
        grid-template-columns: 1fr;
        gap: 2vw;
    }
    
    .modal-gallery img{
        height: 40vw;
    }
    
    .close{
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    
    nav{
        padding: 3vw 4vw;
    }
    
    nav h3{
        font-size: 2.5vw;
    }
    
    .nav-menu a{
        font-size: 1.6vw;
    }
    
    #page1-content{
        padding-top: 8vw;
    }
}

#page4{
    height: 50vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#page4 video{
    height: 100%;   
}

#page4 svg{
    position: absolute;
    height: 60%;
}

#page5{
    min-height: 100vh;
    width: 100%;
    padding: 5vw 3vw;
    position: relative;
}

#page5-top{
    text-align: center;
    margin-bottom: 4vw;
}

#page5-top h2{
    font-size: 4vw;
    font-weight: 500;
    margin-bottom: 1vw;
}

#page5-top h4{
    font-size: 1.2vw;
    font-weight: 300;
    color: #666;
    margin-bottom: 2vw;
}

#swiperdiv{
    height: 60vw;
    width: 100%;
    position: relative;
    margin-top: -29%;
}



.swiper {
    width: 130%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
}

.swiper-slide img {
    display: block;
    width: 17%;
    object-fit: cover;
}


#loader {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    background-color: #000;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 10px;

}

#loader h3{
    font-size: 2vw;
    font-family: nb;
}


#page6{
    min-height: 60vh;
    width: 100%;
    background: #f8f8f8;
    padding: 5vw 3vw;
}

.footer-content{
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10vw;
    margin-bottom: 2vw;
}

.footer-section h3{
    font-size: 1.5vw;
    font-weight: 500;
    margin-bottom: 1.5vw;
    color: #333;
}

.footer-section p{
    font-size: 1vw;
    line-height: 1.6;
    color: #666;
    font-weight: 300;
}

.contact-links{
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.contact-link{
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    padding: 0.5vw 0;
}

.contact-link:hover{
    color: #ff8b38;
}

.contact-label{
    font-size: 0.9vw;
    font-weight: 500;
    margin-bottom: 0.2vw;
}

.contact-value{
    font-size: 1vw;
    font-weight: 300;
    color: #666;
}

.footer-bottom{
    text-align: center;
    padding-top: 1vw;
    border-top: 1px solid #ddd;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p{
    font-size: 0.9vw;
    color: #999;
    font-weight: 300;
}

@media(max-width: 768px){
    .footer-content{
        grid-template-columns: 1fr;
        gap: 3vw;
    }
    
    .footer-section h3{
        font-size: 2.5vw;
    }
    
    .footer-section p{
        font-size: 1.6vw;
    }
    
    .contact-label{
        font-size: 1.4vw;
    }
    
    .contact-value{
        font-size: 1.6vw;
    }
    
    .footer-bottom p{
        font-size: 1.4vw;
    }
}