.cv {

	font-size: 20px;
}


header {
    background: #000 url(../img/bg-hero3.JPG) left center no-repeat;
    background-size: cover;
    height: 1000px;
    position: relative;
    color: #ffffff;
}

/* iPad-specific styles */
@media (min-width: 768px) and (max-width: 1024px) {
    header {
        height: 900px; /* Adjusted height for iPad */
        background-position: 60% center; /* Same positioning as mobile */
        background-size: auto 100%; /* Ensure the full height is always shown */
    }
}

/* Mobile styles */
@media (max-width: 767px) {
    header {
        height: 800px;
        background-position: 60% center; /* 60% is the complement of 40% from right */
        background-size: auto 100%; /* Ensure the full height is always shown */
    }
}

/* Contact Popup Styles - Aligned with Main Site Aesthetic */
.contact-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 400;
    overflow: auto;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: 1s all cubic-bezier(0.23, 1, 0.32, 1);
    -moz-transition: 1s all cubic-bezier(0.23, 1, 0.32, 1);
    -ms-transition: 1s all cubic-bezier(0.23, 1, 0.32, 1);
    -o-transition: 1s all cubic-bezier(0.23, 1, 0.32, 1);
    transition: 1s all cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
    opacity: 1;
}

.popup-content {
    position: fixed;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    margin: auto;
    width: 570px;
    height: 750px;
    background: #000000;
    color: #ffffff;
    border: 10px solid #404040;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding: 40px;
    -webkit-transform: scale(0.5);
    -moz-transform: scale(0.5);
    -ms-transform: scale(0.5);
    transform: scale(0.5);
    opacity: 0;
    -webkit-transition: 1s all cubic-bezier(0.23, 1, 0.32, 1);
    -moz-transition: 1s all cubic-bezier(0.23, 1, 0.32, 1);
    -ms-transition: 1s all cubic-bezier(0.23, 1, 0.32, 1);
    -o-transition: 1s all cubic-bezier(0.23, 1, 0.32, 1);
    transition: 1s all cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.show .popup-content {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

@media (max-width: 1150px) {
    .popup-content {
        width: 400px;
        height: 700px;
    }
}

@media (max-width: 960px) {
    .popup-content {
        width: 300px;
        height: 650px;
    }
}

@media (max-width: 767px) {
    .popup-content {
        width: 280px;
        height: 680px;
        padding: 30px 20px;
        border: 7px solid #404040;
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.popup-header h3 {
    margin: 0;
    padding: 0;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 22px;
    letter-spacing: 3px;
    text-align: center;
    color: #ffffff;
}

.popup-header h3 span {
    display: block;
    font-weight: normal;
    font-size: 13px;
    color: #ffffff;
    letter-spacing: 6px;
    margin-top: 5px;
}

.close-popup {
    position: absolute;
    right: -10px;
    top: -10px;
    text-align: right;
    text-decoration: none;
    color: #5e5e5e;
    font-size: 18px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.close-popup:hover {
    color: #ffffff;
}

.popup-steez {
    background: rgba(255, 255, 255, 0.2);
    position: absolute;
    width: 2px;
    height: 100px;
    margin: 30px 0;
    -webkit-transition: 1.5s all cubic-bezier(0.23, 1, 0.32, 1);
    -moz-transition: 1.5s all cubic-bezier(0.23, 1, 0.32, 1);
    -ms-transition: 1.5s all cubic-bezier(0.23, 1, 0.32, 1);
    -o-transition: 1.5s all cubic-bezier(0.23, 1, 0.32, 1);
    transition: 1.5s all cubic-bezier(0.23, 1, 0.32, 1);
}

.popup-steez-left {
    left: 40px;
}

.popup-steez-right {
    right: 40px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 15px;
    font-family: "Lucida Sans Typewriter", "Lucida Console", Monaco, "Bitstream Vera Sans Mono", monospace;
    font-weight: 300;
    font-size: 13px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: rgba(255, 255, 255, 0.05);
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.submit-btn {
    background: transparent;
    color: #ffffff;
    border: 7px solid rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    font-weight: bold;
    font-family: "Lucida Sans Typewriter", "Lucida Console", Monaco, "Bitstream Vera Sans Mono", monospace;
    display: block;
    margin: 30px auto 0;
}

.submit-btn:hover {
    border: 7px solid #ffffff;
}

#form-status {
    margin-top: 20px;
    text-align: center;
}

.success-message {
    color: #ffffff;
    text-align: center;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    letter-spacing: 1px;
}

.error-message {
    color: #ffffff;
    text-align: center;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    letter-spacing: 1px;
}

/* Number styling to match site theme */
.contact-popup .number {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    position: absolute;
    right: 30px;
    top: 160px;
    letter-spacing: 4px;
    font-size: 12px;
    height: 20px;
    width: 20px;
    line-height: 20px;
    color: #ffffff;
}

@media (max-width: 767px) {
    .contact-popup .number {
        top: 40px;
        right: 15px;
    }
}

/* Animation for line steez on popup active */
.show .popup-steez-left {
    height: 200px;
}

.show .popup-steez-right {
    height: 200px;
}

/* Starfield Effect */
.grail {
    position: relative; /* Ensure positioning context for stars */
    overflow: hidden; /* Hide stars that go outside the section */
}

#starfield-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Ensure stars are behind other content in .grail */
}

/*
    Starfield inspiration from:
    - Pure CSS starfield by Keith Clark: https://codepen.io/keithclark/pen/zqcEd
*/

@keyframes move-stars {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100vh); /* Adjust for desired speed/loop */
    }
}

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle fill="white" cx="10" cy="10" r="1"/><circle fill="white" cx="50" cy="30" r="0.5"/><circle fill="white" cx="100" cy="50" r="1"/><circle fill="white" cx="150" cy="20" r="0.8"/><circle fill="white" cx="30" cy="150" r="0.7"/><circle fill="white" cx="120" cy="180" r="1"/></svg>') repeat top center;
    z-index: 1;
    background-size: 200px 200px; /* Density of the smallest stars */
    animation: move-stars 200s linear infinite;
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><circle fill="white" cx="20" cy="20" r="1.5"/><circle fill="white" cx="100" cy="80" r="1"/><circle fill="white" cx="200" cy="150" r="1.2"/><circle fill="white" cx="250" cy="50" r="1"/></svg>') repeat top center;
    z-index: 2;
    background-size: 300px 300px; /* Density of medium stars */
    animation: move-stars 150s linear infinite;
}

.stars3 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><circle fill="white" cx="30" cy="30" r="2"/><circle fill="white" cx="150" cy="120" r="1.5"/><circle fill="white" cx="280" cy="250" r="1.8"/><circle fill="white" cx="350" cy="80" r="2"/></svg>') repeat top center;
    z-index: 3;
    background-size: 400px 400px; /* Density of largest stars */
    animation: move-stars 100s linear infinite;
}


/* Shooting Stars Effect */
/*
    Shooting star inspiration from:
    - Tutorialspoint: https://www.tutorialspoint.com/how-to-create-shooting-star-animation-effect-using-css
    - GeeksforGeeks: https://www.geeksforgeeks.org/how-to-create-shooting-star-animation-effect-using-css/
*/

#starfield-container::before,
#starfield-container::after {
    content: '';
    position: absolute;
    width: 2px; /* Width of the shooting star head */
    height: 150px; /* Length of the tail */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    border-radius: 50% / 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: shoot-star 5s linear infinite;
    z-index: 4; /* Above the starfield layers */
}

#starfield-container::before {
    top: -150px; /* Start above the view */
    left: 30%;
    animation-delay: 0s; /* First star */
    transform: rotate(-45deg);
}

#starfield-container::after {
    top: -150px; /* Start above the view */
    left: 70%;
    animation-delay: 2.5s; /* Second star, delayed */
    transform: rotate(-55deg); /* Slightly different angle */
    height: 120px; /* Slightly different size */
    width: 1.5px;
}

/* Add more pseudo-elements or actual divs for more shooting stars with different delays, positions, and angles */
/* Example for a third shooting star using a new div if pseudo-elements are not enough */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 130px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    border-radius: 50% / 10px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    animation: shoot-star 6s linear infinite;
    z-index: 4;
    top: -130px;
    left: 50%;
    animation-delay: 1.5s;
    transform: rotate(-50deg);
}


@keyframes shoot-star {
    0% {
        transform: translateY(0) translateX(0) rotate(-45deg); /* Adjust rotation if needed per star */
        opacity: 1;
    }
    100% {
        transform: translateY(120vh) translateX(120vh) rotate(-45deg); /* Adjust travel distance and rotation */
        opacity: 0;
    }
}

/* Adjust the keyframes for other stars if their transform: rotate() is different */
/* Example: For the #starfield-container::after which has rotate(-55deg) */
/* You might need separate animations if transforms are very different, or a more complex single animation */

/* Ensure content in the .grail section is above the starfield */
.grail .container {
    position: relative;
    z-index: 10; /* Higher than starfield and shooting stars */
}
.grail .number {
    position: relative;
    z-index: 10;
}

#spinning-planet {
    width: 860px;  /* Adjust as desired for the 3D canvas size */
    height: 850px; /* Adjust as desired for the 3D canvas size */
    margin: auto;  /* Centers the container */
    /* The background of this div might be visible briefly before the 3D model loads
       or if the canvas doesn't fill it perfectly. You can set a background if needed. */
    /* background-color: #f0f0f0; */ /* Optional: for debugging or placeholder */
}

/* Remove any previous @keyframes spin-planet-3d {} and #spinning-planet::before {} rules */

/*ssfim link color fix*/
.grail .container a {
    color: #ffffff;
}
.grail .container a:hover {
    color: #3c5ae0;
}
.grail .container a:active {
    color: #3c5ae0;
}
.grail .container a:visited {
    color: #3c5ae0;
}

