body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #d7d7d7;
    background-color: #010214;
    min-height: 100vh;
    overflow-x: hidden;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    filter: blur(40px);
    pointer-events: none;
}

#lightning-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(10px);
    pointer-events: none;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: relative;
    z-index: 1002;
}

nav a{
    text-decoration: none;
    color: #d7d7d7;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 0 15px #030764;
    transition: all 0.3s ease;
    height: 80px;
}

nav a:hover {
    border-color: #d7d7d7;
    box-shadow: 0 0 15px #d7d7d7;
}

nav ul {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px 5px;
    border-radius: 25px;
    position: relative;
}

.nav-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(215, 215, 215, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.04);
    transition: left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                top 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.nav-highlight.active {
    opacity: 1;
}

nav ul li a{
    display: inline-block;
    padding: 12px 18px;
    border-radius: 20px;
    text-decoration: none;
    color: #d7d7d7;
    font-weight: bold;
    font-size: 18px;
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: none;
    border: none;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: auto;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
    border-radius: 20px;
}

nav ul li a:hover {
    box-shadow: 0 0 15px rgba(215, 215, 215, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.06);
}

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a svg {
    vertical-align: text-bottom;
    margin-right: 8px;
}

nav img {
    height: 80px;
}

.Main-controls {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.User-controls {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    margin-left: auto;
}

.product-section {
    margin: 60vh 20px 80px;
    text-align: center;
    opacity: 0.9;
}

.product-section h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.header-desc {
    font-size: 20px;
    color: #a0a0a0;
    margin-bottom: 20px;
}

.product-section hr {
    width: 36vw;
    border: 1px solid rgba(30, 41, 59, 0.3);
    margin: 0 auto 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    margin: 0 14%;
}

.product-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
}

.product {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 20px 40px;
    margin: 15px 20px 10px;
    transition: all 0.3s ease;
}

.product:hover {
    box-shadow: 0 0 10px #d7d7d7;
    border-color: #d7d7d7;
    transform: translateY(-10px);
}

.product img {
    margin: 0px 80px;
}

.product p {
    font-size: 18px;
    margin: 20px 0 40px;
}

.view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #d7d7d7;
    padding: 12px 18px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                backdrop-filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                -webkit-backdrop-filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.view-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-115%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.2s ease;
    pointer-events: none;
}

.view-button:hover {
    border-color: rgba(215, 215, 215, 0.6);
    box-shadow: 0 0 20px rgba(215, 215, 215, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(-2px);
}

.view-button:hover::before {
    transform: translateX(115%);
    opacity: 1;
}

.three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

form{
    background-color: #02032e;
    border: 2px solid #070b97;
    border-radius: 15px;
    padding: 20px 20px 40px;
    margin: 60px auto;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 500px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 40%;
    padding: 10px;
    margin: 10px 0 10px;
    border: 2px solid #070b97;
    border-radius: 10px;
    background-color: #010214;
    color: #d7d7d7;
    font-size: 18px;
    transition: all 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus {
    border-color: #d7d7d7;
    box-shadow: 0 0 10px #d7d7d7;
    outline: none;
}

form button {
    border: 3px solid #070b97;
    background: rgba(3, 7, 100, 0.6);
    border-radius: 20px;
    text-decoration: none;
    color: #d7d7d7;
    font-weight: bold;
    font-size: 18px;
    padding: 12px 18px;
    opacity: 0.80;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

form button:hover {
    border-color: rgba(215, 215, 215, 0.6);
    box-shadow: 0 0 20px rgba(215, 215, 215, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.05);
    background: rgba(7, 11, 151, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 1;
    transform: translateY(-2px);
}

form button:hover::before {
    left: 100%;
}

footer{
    text-align: center;
    padding: 20px;
    background-color: #010214;
    border-top: 1px solid #070b97;
    color: #a0a0a0;
    font-size: 16px;
}

footer hr {
    border: 1px solid #070b97;
    margin: -10px auto 20px;
    width: 10vw;
}

footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin: 10px 0 0 0;
}

footer ul li a {
    text-decoration: none;
    color: #a0a0a0;
    font-size: 16px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer ul li a:hover {
    color: #d7d7d7;
    text-shadow: 0 0 5px #d7d7d7;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1003;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #d7d7d7;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 2, 20, 0.98);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 1300px) {
    .hamburger {
        display: flex;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .Main-controls,
    .User-controls {
        display: none;
    }

    .Main-controls.mobile-visible,
    .User-controls.mobile-visible {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        gap: 15px;
        width: auto;
        margin: 0;
        align-items: center;
    }

    .Main-controls.mobile-visible {
        top: 15%;
    }

    .User-controls.mobile-visible {
        top: 70%;
    }

    .Main-controls.mobile-visible li,
    .User-controls.mobile-visible li {
        opacity: 1;
        list-style: none;
    }

    nav ul li a {
        padding: 20px 32px;
        font-size: 18px;
        text-align: center;
        display: block;
        white-space: nowrap;
        height: 25px;
    }

    nav a {
        height: 60px;
    }

}

/* Tablet Breakpoint (1024px and below) */
@media screen and (max-width: 1024px) {
    .Main-controls {
        gap: 15px;
    }
    .User-controls {
        gap: 10px;
    }

    .product-grid {
        margin: 0 8%;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Small Tablet Breakpoint (768px and below) */
@media screen and (max-width: 768px) {
    nav {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    nav img {
        height: 60px;
    }

    nav ul li a {
        height: 30px;
    }

    .Main-controls {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        gap: 10px;
    }

    .User-controls {
        gap: 8px;
    }

    nav ul li a {
        padding: 8px 12px;
        font-size: 14px;
    }

    .product-section {
        margin: 40vh 15px 60px;
    }

    .product-section h2 {
        font-size: 28px;
    }

    .header-desc {
        font-size: 16px;
    }

    .product-grid {
        margin: 0 5%;
        grid-template-columns: 1fr;
    }

    .product {
        margin: 10px;
    }

    .three-grid {
        grid-template-columns: 1fr;
    }

    form {
        margin: 40px 20px;
        padding: 20px 15px 30px;
    }

    form input[type="text"],
    form input[type="email"],
    form input[type="password"] {
        width: 70%;
    }
}

/* Mobile Breakpoint (576px and below) */
@media screen and (max-width: 576px) {
    nav {
        padding: 12px 15px;
    }

    nav img {
        height: 45px;
    }

    nav a {
        height: 45px;
        border: none;
        box-shadow: none;
    }

    .product-section {
        margin: 30vh 10px 40px;
    }

    .product-section h2 {
        font-size: 24px;
    }

    .header-desc {
        font-size: 14px;
    }

    .product-section hr {
        width: 60vw;
    }

    .product {
        padding: 15px 15px 30px;
        margin: 10px 5px;
    }

    .product img {
        margin: 0 40px;
        max-width: calc(100% - 80px);
    }

    .product p {
        font-size: 16px;
        margin: 15px 0 30px;
    }

    .view-button {
        padding: 10px 15px;
        font-size: 16px;
    }

    form {
        margin: 30px 10px;
        padding: 15px 10px 25px;
    }

    form input[type="text"],
    form input[type="email"],
    form input[type="password"] {
        width: 85%;
        font-size: 16px;
    }

    form button {
        font-size: 16px;
        padding: 10px 15px;
    }

    footer {
        padding: 15px 10px;
        font-size: 14px;
    }

    footer hr {
        width: 30vw;
    }

    footer ul li a {
        font-size: 14px;
    }
}