/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Use system-ui for typography */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #fff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Typography improvements */
h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}





/* Video background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Light and Dark Mode Filters */
body.light {
    background-color: #c2d8b3; /* Pale olive green background for light mode */
}

body.dark #bg-video {
    filter: brightness(0.5); /* Darken the video in dark mode */
}

body.light .video-background {
    display: none; /* Hide video in light mode */
}

/* Header and toggle button */
header {
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    display: flex;
    justify-content: left;
    z-index: 2;
}

#contact-button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
/* Adjusted accent color */
#contact-button:hover, #theme-toggle:hover, .social-icons a:hover, .coding-icons i:hover {
    color: #6B8E23; /* Olive accent color */
}

#contact-button.light, #theme-toggle.light {
    background-color: #fff;
    color: #333;
}

/* Main content styling */
.content {
    text-align: center;
    z-index: 1;
}

.headshot img {
    width: 15em;
    height: 15em;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Light mode */
body.light {
    background-color: #c2d8b3; /* Pale olive green for light mode */
    color: #000;
}

body.light .social-icons a, body.light .coding-icons i {
    color: #000;
}

body.light .social-icons a:hover, body.light .coding-icons i:hover {
    color: #6B8E23;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #fff;
    color: #333;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content form input, .modal-content form textarea {
    margin-bottom: 10px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-content form input[type="submit"] {
    background-color: #6B8E23;
    color: white;
    cursor: pointer;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .headshot img {
        width: 120px;
        height: 120px;
    }

    .description {
        font-size: 1rem;
    }

    .social-icons a, .coding-icons i {
        font-size: 1.5rem;
    }
}
