* {
    margin: 0; /* Reset default margins */
    padding: 0; /* Reset default padding */
    box-sizing: border-box; /* Ensure consistent sizing */
}

html, body {
    font-family: 'Ubuntu', sans-serif;
    min-height: 100vh;
}

header {
    background-color: #040404;
    padding: 27px;
}

.mainimg{
    height: auto;
    width: 100%;
}

.logo{
    margin: -1;
}

.cover-page {
    background-image: url('mainimg.png'); /* Background image */
    background-size: cover;
    background-position: center;
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    color: white; /* Text color */
    text-align: center; /* Center text */
    position: relative; /* Allows absolute positioning for children */
    overflow: hidden; /* Hide overflow from pseudo-element */
}

.cover-page::before {
    content: ""; /* Required for pseudo-element */
    position: absolute; /* Position it absolutely within the cover page */
    top: 0; /* Cover the top */
    left: 0; /* Cover the left */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-image: url('mainimg.png'); /* Same image for the blur effect */
    background-size: cover;
    background-position: center;
    filter: blur(2px); /* Apply blur effect */
    z-index: 0; /* Behind the message */
    margin-bottom: 10px;
}

.message {
    position: relative; /* Allows it to be above the blurred image */
    z-index: 1; /* Above the pseudo-element */
    color: rgb(0, 0, 0); /* Text color */
    text-align: center; /* Center text */
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent background for contrast */
    padding: 20px; /* Add padding */
    border-radius: 10px; /* Optional rounded corners */
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust color and opacity as needed */
}

nav {
    background: #040404;
    padding: 5px;
}

.menu {
    display: flex;
    justify-content: center;
    list-style: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    top: 20px; 
    right: 20px;
}

a {
    color: brown; 
    text-decoration: none;
}

.menu a {
    color: rgb(252, 252, 252);
    padding: 8px 12px;
    border-radius: 5%;
    position: relative; /* For the underline effect */
    transition: background-color 0.3s;
}

.menu a:hover {
    background-image: linear-gradient(to right, #063ba5, #080d18);
    color: yellow;
}

/* Underline effect */
.menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px; /* Position it below the text */
    height: 2px; /* Line thickness */
    background-color: yellow; /* Line color */
    transform: scaleX(0); /* Start hidden */
    transition: transform 0.3s ease; /* Animation */
}

.menu a:hover::after {
    transform: scaleX(1); /* Show line on hover */
}

.menu li {
    margin: 0 10px; /* Adjust if needed */
    font-size: 20px;
    display: inline;
}

.header {
    position: relative; /* Allows positioning of child elements */
    padding: 20px; /* Adjust as needed */
    background-color: #fff; /* Optional background color */
}

.header__login {
    position: absolute; /* Positions the login button relative to the header */
    top: 20px; /* Distance from the top */
    right: 120px; /* Distance from the left */
}

.login-button {
    background-image: linear-gradient(to right, #6b6a58, #6868de);
    color: yellow; /* Button text color */
    padding: 10px 20px; /* Button padding */
    text-decoration: none; /* Remove underline */
    border-radius: 7.5px; /* Rounded corners */
    transition: background-color 0.3s; /* Transition effect */
}

.login-button:hover {
    background-image: linear-gradient(to right, #063ba5, #080d18);
}

.footer {
    margin-top: 10px; /* Pushes footer to the bottom */
    background-color: #161717; /* Optional background color */
    padding: 20px; /* Adjust padding as needed */
    color: cadetblue;
    justify-content: center;
}
.footer a{
    color: cadetblue;
}

.footer_container {
    display: flex;
    justify-content: center; /* Center the contents */
    align-items: center; /* Align items vertically */
    flex-direction: column;
}

.footer_social {
    display: flex;
    justify-content: flex-start; /* Align items to the left */
    align-items: flex-start; /* Align items to the top */
    flex-direction: column; /* Stack items vertically */
    text-align: left; /* Ensure text is left-aligned */
}

.techjobs {
    margin-top: 10px;
    display: flex;           /* Use flexbox for the container */
    flex-wrap: wrap;        /* Allow items to wrap to the next line if needed */
    justify-content: center; /* Center the items horizontally */
    gap: 40px;              /* Space between the items */
}

.contest1 {
    flex: 1 1 300px;        /* Flex-grow, flex-shrink, and base width */
    max-width: 450px;       /* Maximum width of each contest box */
    background-color: #000; /* Black background for the box */
    border: 1px solid #ddd; /* Light gray border */
    border-radius: 10px;    /* Rounded corners */
    padding: 20px;          /* Padding inside the box */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: transform 0.3s, box-shadow 0.3s; /* Transition for hover effect */
    text-align: center;     /* Center text inside the contest box */
}

.contest1 h2 {
    color: #fefbfb; /* Darker color for the heading */
    margin-bottom: 10px; /* Space below the heading */
}

.contest1 p {
    color: #69ff12; /* Gray color for the paragraph text */
    line-height: 1.5; /* Improve readability */
}

/* Hover effect */
.contest1:hover {
    transform: translateY(-5px); /* Lift the box slightly on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 0;
}

.footer_social {
    margin-bottom: 20px; /* Space between sections */
    justify-content: flex-start;
}

.footer_social h4 {
    margin-bottom: 10px;
    font-size: 1.2em; /* Adjust font size as needed */
    justify-content: flex-start;
}

.social_links {
    display: flex;
    align-items: flex-start; /* Center the icons */
}

.social_links a {
    margin: 0 10px; /* Space between icons */
    color: #fff; /* Icon color */
    font-size: 20px; /* Icon size */
    transition: color 0.3s; /* Transition effect */
}

.social_links a:hover {
    color: #007bff; /* Change color on hover */
}


@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        background: #333;
        top: 50px; /* Adjust based on your header */
        left: 0;
    }

    .menu li {
        display: block;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .menu.active {
        display: flex;
    }
}
