p1, p2, p3 {display: flex;
justify-content: center;
align-items: center;
height: 50px;
background-color: black;
font-size: 25px;
font-weight: bold;
color: white;
text-shadow: 2px 2px 4px #000000;
outline: 2px solid red;
margin-top: 1%;
padding-top: 1%;}

/* Project boxes and connecting line */
.projects-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 60px 0 40px 0;
    position: relative;
    z-index: 2;
}

.project-box {
    background: rgba(0, 206, 209, 0.15);
    border: 2px solid #00CED1;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 32px 28px 24px 28px;
    margin: 0 0;
    min-width: 210px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: transform 0.2s, box-shadow 0.2s;
}
.project-box:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 32px #00CED1AA;
    border-color: #00FFF5;
}
.project-icon {
    display: block;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px #00CED1AA);
}
.project-title {
    font-size: 22px;
    font-weight: 600;
    color: #00FFF5;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px #00000099;
}
.project-desc {
    font-size: 17px;
    color: #fff;
    font-weight: 400;
    text-shadow: 0 1px 4px #00000066;
}
.line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00CED1 0%, #00FFF5 100%);
    border-radius: 2px;
    margin: 0 0;
    z-index: 1;
}
@media (max-width: 900px) {
    .projects-container {
        flex-direction: column;
    }
    .line {
        width: 4px;
        height: 40px;
        margin: 0 0;
        background: linear-gradient(180deg, #00CED1 0%, #00FFF5 100%);
    }
}

/* About page boxes */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 40px auto 60px auto;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.about-box {
    background: rgba(0, 206, 209, 0.15);
    border: 2px solid #00CED1;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 28px 32px;
    width: 100%;
    position: relative;
    z-index: 2;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.about-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 206, 209, 0.3);
    border-color: #00FFF5;
}

.about-box p {
    display: block;
    height: auto;
    background-color: transparent !important;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.7;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    outline: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

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

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

* {
    font-family: 'Geist', sans-serif;
}

/* Loading animation styles */
.loading {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-out;
}

.loaded {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        outline: 2px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }
    50% {
        outline: 2px solid rgba(255, 255, 255, 1);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
    100% {
        outline: 2px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3em 1em;
    border-radius: 15px;
    width: 90%;
    margin-top: 1%;
    margin-bottom: 0;
    margin-left: 5%;
    margin-right: 5%;
    background: linear-gradient(to right, #1a1a1a, #00CED1);
    outline: 2px solid white;
    animation: pulse 1.5s infinite ease-in-out;
}

.nav-left {
    font-size: 25px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-link:hover {
    color: #00FFF5;
    text-shadow: 0 0 10px rgba(0, 255, 245, 0.5);
}

.home-link:active {
    transform: scale(0.95);
}

.nav-right {
    display: flex;
    gap: 1em;
    list-style: none;
    margin: 0;
    padding: 0;
    color: white;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
                     0 0 10px rgba(255, 255, 255, 0.5),
                     0 0 15px rgba(0, 255, 245, 0.5);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
                     0 0 20px rgba(255, 255, 255, 0.7),
                     0 0 30px rgba(0, 255, 245, 0.7),
                     0 0 40px rgba(0, 255, 245, 0.5);
    }
    100% {
        transform: translateY(0) scale(1);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
                     0 0 10px rgba(255, 255, 255, 0.5),
                     0 0 15px rgba(0, 255, 245, 0.5);
    }
}

.nav-right a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-right a:visited {
    color: #E0E0E0;
}

.nav-right a:hover {
    color: #00FFF5;
    animation: float 1s infinite ease-in-out;
    background: rgba(0, 255, 245, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 245, 0.2);
}

.nav-right a:active {
    color: #FF69B4;
    animation: none;
    transform: scale(0.95);
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.3);
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(to bottom, #000000, #1a1a1a);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    border-radius: 8px;
    z-index: 10;
    overflow: hidden;
    margin-top: 5px;
    border: 1px solid rgba(0, 206, 209, 0.3);
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-size: 23px;
}

.dropdown-content a:hover {
    background-color: rgba(0, 206, 209, 0.15);
    animation: none !important;
    text-shadow: 0 0 8px rgba(0, 206, 209, 0.6);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: dropdownFade 0.3s ease-in-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 500px;
    margin-right: 50px;
    height: 40px;
    font-size: 23px;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    background-color: lightgrey;
    font-size: 30px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px #000000;
    margin-top: -1%;
    padding-top: 1%;
    padding-bottom: 60px;
}

h1 {
    display: block;
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px #000000;
    margin: 40px 0 0 0;
    padding: 20px 0;
}

h2 {
    display: block;
    text-align: center;
    font-size: 24px;
    font-weight: normal;
    color: white;
    text-shadow: 2px 2px 4px #000000;
    margin: 0;
    padding: 15px 0;
}

p {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background-color: lightgrey;
    font-size: 30px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px #000000;
    outline: 2px solid red;
}

footer {display: flex;
justify-content: flex-start;
align-items: center;
height: 50px;
background-color: black;
font-size: 15px;
color: white;
text-shadow: 2px 2px 4px #000000;
padding-left: 5px;}

/* Background video styles */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: -1; /* keep behind page content */
    object-fit: cover;
    pointer-events: none; /* let clicks pass through */
    opacity: 0.95;
}

.content { /* content above the video */
    position: relative;
    z-index: 1;
}

/* force transparent backgrounds for elements so the video shows through */
main.content {
    background-color: transparent !important;
}

h1, p {
    background-color: transparent !important;
}

/* Overlay sits between the video and page content to improve contrast */
#bg-overlay {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    z-index: 0; /* between video (-1) and content (1) */
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35));
    pointer-events: none;
}


h3 {
    background: linear-gradient(to right, #4a4a4a, #00CED1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    padding: 15px 0;
    margin: 0;
    text-shadow: none;
}
.video-toggle:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}


p1, p2, p3 {display: flex;
justify-content: center;
align-items: center;
height: 50px;
background-color: black;
font-size: 25px;
font-weight: bold;
color: white;
text-shadow: 2px 2px 4px #000000;
outline: 2px solid red;
margin-top: 1%;
padding-top: 1%;}
