body, html {
    background-color: rgba(0, 0, 0, 0.6);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

/* Header styling */
header {
    display: flex;
    justify-content: flex-end;
    background-color: #000000;
    height: 60px;
    padding: 0 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

a {
    margin: 0 15px;
    margin-top: 1em;
    margin-right: 2em;
    color: #ffffff;
    font-size: 1.3vw;
    text-decoration: none;
    font-weight: bolder;
    transition: color 0.3s;
    margin-left: 0em;
}

a:hover {
    color: #ffcc00;
}

header i {
    margin-top: 0.3em;
}

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

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

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: azure;
    text-align: center;
    line-height: 1.6;
    padding: 0 3em;
}

/* Commented this out since i moved it to js
h1 {
    word-spacing: break-word;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    font-size: 6vw;
    color: azure;
    margin: 0.5em 0;
    line-height: 1.1;
    display: block;
}


h4 {
    text-align: center;
    font-size: 2vw;
    color: azure;
    margin: 1em 0;
    display: block;
}


.hover-effect:hover {
    color: #ffcc00;
    transform: scale(1.1);
}


.hover-effect {
    transition: color 0.5s, transform 0.5s;
    -webkit-text-stroke: 1px #ffffff;
    -webkit-text-fill-color: transparent;
    font-weight: bolder;
    font-family: monospace;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid;
    width: 100%;
    animation: typewriter 4s steps(20) 1s forwards, blink 0.7s infinite;
    -webkit-animation: typewriter 4s steps(20) 1s forwards, blink 0.7s infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; color: #ffaa00;}
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hover-effect:hover {
    -webkit-text-stroke: 0em;
    color: #ffaa00;
    -webkit-text-fill-color: #ffaa00;
}
*/

/* About Me Section */
.AboutMe {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 4em 2em;
}

.AboutMeContent {
    max-width: 800px;
    margin: 0 auto;
    color: white;
    text-align: center;
    line-height: 1.6;
}

.fadeInTitle {
    animation: fadeIn 1.2s ease forwards;
}

.fadeInText {
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Projects Section */
.section2 {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4em 2em;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    margin-left: 1em;
    margin-right: 1em;
    background-color: #0f0e0e;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 300px;
    text-align: left;
    height: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 204, 0, 0.6);
    opacity: 1;
}

.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.fadeInUp {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gitlink {
    margin: 0.5em;
    border-radius: 1em;
    -webkit-border-radius: 1em;
    -moz-border-radius: 1em;
    -ms-border-radius: 1em;
    -o-border-radius: 1em;
    color:#ffaa00;
    border: solid #ffaa00;
    width: 10em;
    height: 4em;
    background-color: #000000;
    text-align: center;
    align-items: center;
    font-weight: bolder;
}

.gitlink:hover {
    background-color: #ffaa00;
    color: #ffffff;
}

.gitlink a {
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
}

.projectTitle {
    color: #ffaa00;
    font-weight: bolder;
    font-size: 2em;
    margin-bottom: 0;
}
 
/* Contact Form */
.form {
    background-color: rgba(0, 0, 0, 0.7); /* Translucent black background to make the video still visible*/
    padding: 2em;
    max-width: 80%;
    margin: 2em auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.form h2 {
    text-align: center;
    color: #ffffff;
}

.form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e0e0e0;
}

.form input[type="text"],
.form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    background-color: #444;
    color: #ffffff;
    border: solid 0.1em #ffcc00;
}

.form input[type="submit"] {
    width: 100%;
    padding: 12px;
    border: solid 0.1em #ffcc00;
    border-radius: 5px;
    background-color: #ffcc00;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form input[type="submit"]:hover {
    background-color: #ffaa00;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    padding: 1em 0;
}

/* Media Queries */
@media only screen and (max-width: 600px) {
    a {
        font-size: 1em;
    }

    h1 {
        font-size: 4vw;
    }

    h4 {
        font-size: 1.5vw;
    }

    .card2 {
        font-size: 0.8rem;
    }
}

body {
    cursor: none;
}

/* Custom cursor style */
.custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 2px solid white; /* White outline */
    border-radius: 50%; /* Circular shape */
    pointer-events: none; /* Prevent cursor from interfering with events */
    z-index: 9999; /* Ensure it stays on top  (by setting a very high z index)*/
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid black;
    border-radius: 50%;
}

/* Hover effect for links and buttons */
a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor {
    background-color: #ffaa00; /* Change cursor color */
    transform: scale(1.2); /* Slightly enlarge the cursor */
}


