/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;

}

html {
    overflow-x: hidden;  /* NEW: Global horizontal scroll prevention */
}

/* Consolidated body styling - Responsive background with fallback */
body {
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;  /* Ensures it scales on all devices */
  /* MOVED: Fallback under image only on body */
    line-height: 1.6;  /* Improves readability */
    padding-top: 120px;  /* Matches navbar height */
    overflow-x: hidden;  /* NEW: Prevent body-level horizontal scroll */
}

/* Navbar - Fixed and responsive */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 120px; /* Fixed height for consistency */
    color: black;
    padding: 15px 20px;
    position: fixed; /* Keeps it in place */
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow */
    max-width: 100%;  /* NEW: Constrain to viewport */
}

.logo {
    padding-right: 20px;
}

.logo img {
    height: 100px;
    width: auto;
    max-width: 100%;  /* NEW: Prevent logo overflow */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;    /* Keep all in one line */
    /* REMOVED: overflow-x: auto; - Not needed, as it can cause unwanted scroll */
}

.nav-links li {
    margin: 2px;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-weight: 550;
    white-space: nowrap;  /* NEW: Prevent link text wrapping */
}


.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}


/* Dropdown menu (hidden by default) */
.dropdown-menu {
    display: none;
    flex-direction: column;
    background: white;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-align: center;
    z-index: 9;
    padding-top: 150px; /* Space for the menu toggle */
    margin-top: 20px; /* Add space between navbar and dropdown */
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-menu li {
    list-style: none;
    padding: 15px 0;
    border-bottom: 1px solid #555;
    
}

.dropdown-menu a {
    text-decoration: none;
    color: black;
    font-size: 1.5rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

}


body {
    background-image: url(/Images/DLV_Final.png);
    background-position: center; 
    background-attachment: fixed;
    background-repeat: no-repeat; 
    background-size: cover;
    box-sizing: border-box;
}


.styled-paragraph {
    padding: 30px;
    color: rgb(12, 9, 9);
    font-family: 'Roboto', Arial, sans-serif; 
    font-size: 25px; 
    font-weight: 600;
    line-height: 1.6; 
    color: rgb(red, grey, gold); 
    padding: 15px; 
    border-radius: 8px;
    border: 3px solid #ddd; 
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); 
    max-width: 1200px; 
    margin: 20px auto; 
    text-align: justify; 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}




footer {
    color: black;
    text-align: center;
    padding: 20px 0;
    font-size: 22px;
    font-weight: 550;
}

.socials a {
    color: black;
    margin: 0 10px;
    text-decoration: none;
    padding-right: 7px;
}

.socials a:hover {
    color: #ddd;
}
    

#backToTop{
    background-color: blue;
    padding: 12px;
    border-radius: 7px;
    border:none;
    color: white;
}