@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&family=Syne:wght@400..800&display=swap');

body {
    background: black;
    font-family: "Quicksand", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.content {
    flex: 1;
}

.navContainer {
    display: flex;
    justify-content: flex-end;
    border-bottom: #dddddd 1px solid;
    height: 7vh;
}

.topnav {
    background-color: black;
    overflow: hidden;
}

.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    opacity: 0.7;
    background: transparent;
    transition: opacity 0.3s ease-in-out, background 0.3s ease-in-out;
}

.topnav a:hover {
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.15) 0%, transparent 70%);
    color: #f2f2f2;
    opacity: 1;
}

.topnav a.active {
    color: white;
}

.name {
    display: flex;
    justify-content: flex-start;
    color: white;
    font-size: 10px;
    height: 0.4vh;
    opacity: 0.7;
}

h1 {
    font-weight: 400;
}

.name h1 {
    font-weight: 300;
}

.mainHeading {
    color: white;
    opacity: 0.7;
    font-family: "Syne", sans-serif;
    font-size: 150px;
    letter-spacing: -0.04em;
    margin-top: 20vh;
}

footer {
    padding: 14px 16px;
    border-top: #dddddd 1px solid;
    color: #f2f2f2;
    font-size: 14px;
    text-align: right;
    height: 2.6vh;
}

.nameBottom {
    opacity: 0.7;
}

.icon{
    height:5vh;
    width:5vh;
    margin-top: 1vh;
    margin-left: 0.3vw;
}



.char {
    cursor: pointer;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease,
                text-shadow 0.4s ease;
}

.line {
    display: block;
}

a.mainHeading {
    display: block;
    color: white;
    opacity: 0.7;
    font-family: "Syne", sans-serif;
    font-size: 150px;
    letter-spacing: -0.04em;
    margin-top: 30vh;
    text-decoration: none;
}

a.mainHeading:hover {
    opacity: 1;
}

@keyframes jiggle {
    0%   { transform: rotate(0deg) scale(1); }
    25%  { transform: rotate(-15deg) scale(1.3); }
    50%  { transform: rotate(15deg) scale(1.3); }
    75%  { transform: rotate(-10deg) scale(1.2); }
    100% { transform: rotate(0deg) scale(1); }
}

.jiggle {
    animation: jiggle 0.4s ease;
}

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

.boxes {
    display: flex;
    gap: 10rem;
}

.box {
    flex: 1;
    flex-direction: column;
    background: black;
    border: 1px solid white;
    padding: 2rem;
    width: 50vh;
    height: 70vh;
    border-radius: 5px;
}

.dot {
    color: white;
    opacity: 0.7;
    font-family: "Syne", sans-serif;
    font-size: 150px;
    letter-spacing: -0.04em;
    user-select: none;
    pointer-events: none;
}

.heading-row {
    display: flex;
    align-items: baseline;
}

.box-header{
    color: white;
    display: flex;
    justify-content: center;
    width: 100%;
    border-bottom: white 1px solid;
    font-size: 1.2rem;
    cursor: pointer;
}

.projText{
    margin-bottom: 2vh;
}

.carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 7rem;
}

.carousel-img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
}

.carousel-btn {
    background: none;
    border: 1px solid white;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.carousel-btn:hover {
    background: white;
    color: black;
}

.proj-container{
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    vertical-align: center;
    height: 100%;
}

.box {
    position: relative;
}

.modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.box-header:hover ~ .modal {
    opacity: 1;
    pointer-events: all;
}

.modal:hover {
    opacity: 1;
    pointer-events: all;
}