/* Basic Reset and Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f5f6;
}

/* Container for max-width and centering */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
/*.main-header {*/
/*    background-color: #fff;*/
/*    padding: 15px 0;*/
/*    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
/*}*/

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 24px;
}

.logo img {
    height: 35px;
    margin-right: 8px;
}

.logo span {
    color: #6a63ec;
}

/* Desktop Navigation */
.desktop-nav {
    display: block; /* Default to block for desktop */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

.nav-links a:hover {
    color: #6a63ec;
}

/* Dropdown Menu (Desktop) */
.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    padding: 20px;
    /* min-width: 800px; Adjust width as needed */
        width: max-content;
    z-index: 1000;
    border-radius: 8px;
}

.dropdown:hover .dropdown-content {
    display: grid; /* Use grid for columns */
    /* grid-template-columns: repeat(5, 1fr); */
    gap: 30px;
    display: flex;
    flex-wrap: wrap !important;
}

.dropdown-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #444;
    font-weight: 600;
}

.dropdown-column h4 i {
    margin-right: 8px;
    color: #6a63ec;
}

.dropdown-column ul {
    list-style: none;
}

.dropdown-column ul li {
    margin-bottom: 10px;
}

.dropdown-column ul li a {
    font-size: 14px;
    color: #666;
    padding: 5px 0;
}

.dropdown-column ul li a:hover {
    color: #6a63ec;
    text-decoration: underline;
}

/* Auth Buttons (Desktop) */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons .search-icon {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
}

.btn-login {
    text-decoration: none;
    color: #555;
    font-weight: 600;
}

.btn-signup {
    text-decoration: none;
    background-color: #6a63ec;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-signup:hover {
    background-color: #544de8;
}

/* Hamburger Menu (Hidden by default) */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Off-screen by default */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    transition: right 0.4s ease-in-out;
}

.mobile-menu-overlay.active {
    right: 0; /* Slide in */
}

.mobile-menu-content {
    background-color: #fff;
    width: 80%; /* Adjust width as needed */
    max-width: 400px;
    height: 100%;
    padding: 30px 20px;
    position: absolute;
    right: 0;
    overflow-y: auto; /* Enable scrolling for long menus */
}

.close-menu {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

/* Mobile Logo Container */
.mobile-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

/* Mobile Search and Auth */
.mobile-search-bar {
    position: relative;
    margin-bottom: 25px;
}

.mobile-search-bar input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
}

.mobile-search-bar .fa-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.mobile-auth-buttons button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #6a63ec;
    border-radius: 5px;
    cursor: pointer;
}

.btn-login-mobile {
    background-color: #fff;
    color: #6a63ec;
}

.btn-signup-mobile {
    background-color: #6a63ec;
    color: #fff;
}

/* Mobile Navigation Links (Accordion) */
.mobile-nav-links {
    list-style: none;
    padding: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-links li:last-child {
    border-bottom: none;
}

/* Top-level mobile dropdowns (e.g., Convert, Compress) */
.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
}

/* Top-level dropdown content */
.mobile-dropdown-content {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.mobile-dropdown-content.active {
    max-height: 2000px; /* Large value to accommodate all content */
    padding-bottom: 10px;
}

/* Nested dropdowns (e.g., Video & Audio, Image) */
.nested-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

.nested-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.nested-dropdown-toggle i:first-child {
    margin-right: 8px; /* Icon before the text */
    color: #6a63ec;
}

/* Nested dropdown content */
.nested-dropdown-content {
    list-style: none;
    padding-left: 20px; /* Indent the nested links */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.nested-dropdown-content.active {
    max-height: 1000px; /* Large value to accommodate all content */
    padding-top: 5px;
    padding-bottom: 10px;
}

.nested-dropdown-content li a {
    display: block;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    font-size: 15px;
}

.nested-dropdown-content li a:hover {
    color: #6a63ec;
}

/* Media Query for Mobile Layout */
@media (max-width: 1024px) {
    /* Hide desktop elements */
    .desktop-nav,
    .auth-buttons {
        display: none;
    }

    /* Show mobile elements */
    .hamburger-menu {
        display: flex;
    }
}