/* Global Styles */

/* Animation for the background */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.more-button {
    margin-top: 20px;
    padding: 12px;
    background-color: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s, transform 0.3s;
}

.more-button:hover {
    background-color: #333; /* Changed the hover color */
    transform: scale(1.02);
}
/* Base Styles */
nav {
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.65), rgba(0, 0, 0, 0.9));
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

/* Scrolled State */
.scrolled {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(0, 0, 0, 0.9));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
}

/* Logo */
nav .logo {
    font-size: 1.8em; /* Increased for better visibility */
    font-weight: 600;
    color: #c2c2c2;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s, transform 0.3s;
    margin: 0;
    margin-left: 30px;
    margin-right: 60px;
}

/* Navigation Links Container */
.nav-links {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping of links on smaller screens */
    width: 100%;
    margin: 0;
    align-items: center;
    justify-content: center; /* Center links */
    padding: 10px 0; /* Add padding for spacing */
    transition: max-height 0.4s ease, opacity 0.4s ease;
    background-color: rgba(255, 255, 255, 0.0); /* Add subtle background for contrast */
    border-radius: 10px; /* Rounded corners for a softer look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
}

/* Navigation Links */
nav ul {
    list-style: none;
    margin: 0; /* Set margin to 0 */
    margin-right: 15px;
    width: 100%; /* Ensure it takes full width */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align items to the right */
    transition: transform 0.3s ease; /* Add transition for hover effect */
}


nav ul li {
    position: relative;
    margin: 0 10px;
}

nav ul li a {
    color: #9a9a9a;
    text-decoration: none;
    font-size: 1.2em;
    padding: 12px 20px;
    border-radius: 12px;
    position: relative;
    transition: color 0.4s, background-color 0.4s, transform 0.4s, box-shadow 0.4s;
}

/* Underline Effect */
nav ul li a::before {
    content: '';
    display: block;
    height: 3px;
    background: #00bfff;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    transition: width 0.4s;
}

nav ul li a:hover::before {
    width: 100%;
}

/* Hover Effects */
nav ul li a:hover {
    color: #00bfff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Dropdown Menu */
nav ul li ul {
    display: none;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 50%;
    background: rgba(255, 255, 255, 0.0);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    padding: 15px 0;
    border-radius: 40px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s;
    transform: translateY(10px);
}

nav ul li:hover ul {
    display: block;
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

nav ul li ul li {
    margin: 0;
}

nav ul li ul li a {
    padding: 12px 25px;
    font-size: 1.1em;
    color: white;
    transition: background-color 0.4s, color 0.4s;
}

nav ul li ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #00bfff;
}

/* Search Bar */
nav .search {
    display: none;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 8px 12px;
    background: #222;
    color: white;
    transition: width 0.4s, opacity 0.4s, box-shadow 0.4s;
}

nav .search.active {
    display: block;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

nav .search input {
    background: transparent;
    border: none;
    color: white;
    padding: 6px;
    width: 100%;
    transition: width 0.4s;
}

nav .search input:focus {
    outline: none;
}

/* Mobile Menu Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.5em;
    color: #9a9a9a;
    cursor: pointer;
    transition: color 0.4s, transform 0.4s;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px 20px;
        align-items: stretch;
    }

    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo {
        margin: 0;
    }

    .nav-toggle {
        display: block;
        font-size: 2.5em;
        color: white;
        cursor: pointer;
        margin-right: 20px;
        transition: color 0.4s, transform 0.4s;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-height: 0;
        opacity: 0;
        width: auto;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.4s ease;
    }

    .nav-links.active {
        max-height: 500px;
        width: auto;
        opacity: 1;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        background-color: rgba(255, 255, 255, 0.0); /* Add subtle background for contrast */
    }

    nav ul li {
        margin: 10px 0;
        text-align: left;
        width: 100%;
    }

    nav ul li a {
        padding: 15px 20px;
        width: 100%;
        display: block;
    }

    nav .search {
        display: block;
        margin-top: 15px;
        width: 100%;
    }
}

/* Nav Hidden State */
.nav-hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.4s, opacity 0.4s linear;
}

/* Nav Open State */
.nav-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s linear;
}


/* Basic Link Styling */
a {
    color: #1e90ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00bfff;
}


nav .search input::placeholder {
    color: #bbb;
}

/* Keyframes */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001; /* Above other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.7); /* Black background with transparency */
    animation: fadeIn 0.5s; /* Animation for showing the modal */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.modal-header, .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header {
    border-bottom: 1px solid #ddd;
}

.modal-footer {
    border-top: 1px solid #ddd;
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 10px;
    }

    .hero-content h1 {
        font-size: 2.5em; /* Reduce size on smaller screens */
    }

    .hero-content p {
        font-size: 1.2em; /* Reduce size on smaller screens */
    }

    #services ul li {
        width: calc(100% - 20px); /* Full width on small screens */
    }

    .cta-button {
        padding: 10px 20px; /* Reduce padding on small screens */
        font-size: 1em; /* Reduce font size on small screens */
    }
}

/* Footer Styles */
footer {
  position: relative;
  z-index: 3; /* Ensure footer is above other elements */
  background: #000; /* Example background color */
  padding: 20px;
  text-align: center;
}

/* Styling footer links */
footer a {
  color: #9a9a9a;
  text-decoration: none;
  padding: 5px 10px;
  display: inline-block;
}

footer a:hover {
  text-decoration: underline;
}


.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-info,
.footer-services,
.footer-contact,
.footer-social {
    flex: 1;
    margin: 10px;
    min-width: 220px;
    color: #fff;
}

.footer-info h2,
.footer-services h2,
.footer-contact h2,
.footer-social h2 {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 15px;
}

.footer-info p,
.footer-services ul,
.footer-contact p {
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-services ul {
    list-style-type: none;
    padding: 0;
}

.footer-services ul li {
    margin-bottom: 10px;
}

.footer-services ul li a {
    color: #9a9a9a;
    text-decoration: none;
}

.footer-services ul li a:hover {
    text-decoration: underline;
    color: #fff;
}

.footer-contact a {
    color: #9a9a9a;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
    color: #fff;
}

.footer-social {
    text-align: center;
}

.footer-social .social-icon {
    display: inline-block;
    margin: 0 2px;
    vertical-align: middle;
    text-align: center;
}

.footer-social .social-icon img {
    width: 22px;
    height: 22px;
    vertical-align: middle;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    background: #f4f4f4;
    font-size: 0.8em;
}

/* Footer Categories Section */
.footer-categories {
    background: #34495E; /* Darker blue background for categories */
    padding: 20px; /* Padding around categories */
    margin-top: 20px; /* Margin above categories */
    border-radius: 8px; /* Rounded corners */
}

.categories-row {
    display: flex;
    flex-wrap: wrap; /* Wrap categories */
    justify-content: space-between; /* Space between categories */
}

.category-column {
    flex: 1; /* Equal width for categories */
    min-width: 150px; /* Minimum width for small screens */
    margin: 10px; /* Margin between categories */
}

.category-column h3 {
    margin-bottom: 10px; /* Margin below category heading */
    color: #fff; /* Category heading color */
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Stack sections on smaller screens */
    }

    .footer-info,
    .footer-services,
    .footer-contact,
    .footer-social {
        margin: 10px 0; /* Margin for stacked sections */
    }
}


/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-20 {
    padding-top: 20px;
}

/* Miscellaneous */
.hidden {
    display: none;
}

.visible {
    display: block;
}

.transition {
    transition: all 0.3s ease;
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards; /* Fade in effect */
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
.footer-categories {
    display: none;
}
