/* General styles */
html, body {
    margin: 0;
    padding: 0;
    background: none;
    color: #fff;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow-x: hidden;
}

body {
    background: url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
}

/* Header styles */
.header {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgb(0, 0, 0);
    z-index: 1000;
}

.container {
    width: 98%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
    margin: 0 auto;
}

h1 {
    margin: 0;
    padding: 0.25rem 0;
    font-size: 40.8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -5px;
}

/* Typography styles */
.eraserhead-font {
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -5px;
    -webkit-text-stroke: 1px white;
    paint-order: stroke fill;
}

.eraserhead-font .letter {
    display: inline-block;
    transform: skew(-5deg, 0deg);
    position: relative;
}

.eraserhead-font .letter:nth-child(even) {
    transform: skew(5deg, 0deg);
}

.eraserhead-font .letter::before {
    content: attr(data-letter);
    position: absolute;
    left: 0;
    top: 0;
}

/* Animation styles */
.flicker-text {
    animation: 
        flicker-opacity 0.107s infinite alternate,
        flicker-shadow 0.214s infinite alternate,
        flicker-displacement 0.321s infinite alternate;
}

@keyframes flicker-opacity {
    0%, 100% { opacity: 1; }
    10%, 30%, 50%, 70%, 90% { opacity: 0.8875; }
    20%, 40%, 60%, 80% { opacity: 0.94375; }
}

@keyframes flicker-shadow {
    0%, 100% { text-shadow: 0 0 2.25px #fff, 0 0 4.5px #fff; }
    25%, 75% { text-shadow: none; }
    50% { text-shadow: 0 0 1.125px #fff; }
}

@keyframes flicker-displacement {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(0.5625px); }
    20% { transform: translateX(-0.5625px); }
    30% { transform: translateY(0.5625px); }
    40% { transform: translateY(-0.5625px); }
}

/* Navigation styles */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 12px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 13.8px;
    text-transform: uppercase;
    transition: all 0.2s;
    padding: 5px 10px;
}

nav ul li a:hover,
nav ul li a.active-nav-item {
    font-weight: bold;
    -webkit-text-stroke: 0.5px white;
    paint-order: stroke fill;
}

nav ul li a.active-nav-item {
    animation: 
        flicker-opacity 0.107s infinite alternate,
        flicker-shadow 0.214s infinite alternate,
        flicker-displacement 0.321s infinite alternate;
}

/* Social Icons Styles */
.social-icons {
    position: fixed;
    right: 30px;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 2000;
}

.social-icons a {
    margin: 10px 0;
    transition: transform 0.3s ease;
}

.social-icons img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px rgb(152, 134, 255)); /* Light blue glow */
}

social-icons a:hover {
    transform: scale(1.1);
}

/* Contact Page Styles */
.contact-container {
    margin-top: 150px; /* Adjust based on the header height */
    padding: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    width: 100%; /* Ensure the h2 takes the full width of the container */
}

.contact-form-container {
    display: flex;
    justify-content: center; /* Center the form container content */
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 40px; /* Add more space between the form and image */
}

.contact-form {
    flex: 1;
    max-width: 400px; /* Set a max-width for the form */
    margin-right: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: none; /* Hide labels since we're using placeholders */
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #fff;
    color: #fff;
    font-family: "Courier New", Courier, monospace; /* Set to a common monospace font */
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #bbb; /* Placeholder text color */
}

.contact-form button {
    padding: 10px 20px;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #ddd;
}

/* Hover effect for the image */
.contact-image {
    flex: 1;
    text-align: center;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.contact-image img {
    max-width: 100%;
}

/* Ensure this does not interfere with the rest of the site */
.contact-container, .contact-title, .contact-form, .contact-image {
    position: relative;
    z-index: 1;
}

/* Additional adjustments */
@media (max-width: 768px) {
    .contact-form-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-form {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* LinkedIn icon */
.social-icons a:nth-child(1) {
    position: fixed;
    right: 500px; /* Adjust this value to move left/right */
    top: 120px; /* Adjust this value to move up/down */
}

/* Instagram icon */
.social-icons a:nth-child(2) {
    position: fixed;
    right: 30px; /* Adjust this value to move left/right */
    top: 180px; /* Adjust this value to move up/down */
}

/* Facebook icon */
.social-icons a:nth-child(3) {
    position: fixed;
    right: 30px; /* Adjust this value to move left/right */
    top: 240px; /* Adjust this value to move up/down */
}

/* Define the floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply the floating animation to each icon */
.social-icons a:nth-child(1) {
    position: fixed;
    right: 30px;
    top: 120px;
    animation: float 3s ease-in-out infinite;
}

.social-icons a:nth-child(2) {
    position: fixed;
    right: 30px;
    top: 180px;
    animation: float 3s ease-in-out infinite;
}

.social-icons a:nth-child(3) {
    position: fixed;
    right: 30px;
    top: 240px;
    animation: float 3s ease-in-out infinite;
}

/* Position the icons individually */
.social-icons a:nth-child(1) {
    right: 600px;
    top: 120px;
}

.social-icons a:nth-child(2) {
    right: 730px;
    top: 250px;
}

.social-icons a:nth-child(3) {
    right: 435px;
    top: 250px;
}

/* Define the floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply the floating animation to each icon with variations */

/* LinkedIn icon */
.social-icons a:nth-child(1) {
    position: fixed;
    right: 600px;
    top: 120px;
    animation: float 3.5s ease-in-out infinite;
    animation-delay: 1.5s; /* No delay for the LinkedIn icon */
}

/* Instagram icon */
.social-icons a:nth-child(2) {
    position: fixed;
    right: 740px;
    top: 275px;
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s; /* 1-second delay for the Instagram icon */
}

/* Facebook icon */
.social-icons a:nth-child(3) {
    position: fixed;
    right: 430px;
    top: 275px;
    animation: float 4s ease-in-out infinite; /* Slightly slower animation */
    animation-delay: 0.5s; /* 0.25-second delay for the Facebook icon */
}
