/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 30px;
    --space-xl: 50px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 50px;
}

#logo {
    width: 60px;
    height: auto;
    background-color: rgba(255, 255, 255, 0);
    padding: 5px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: url("/public/bg6.jpg") no-repeat center/cover;
    background-attachment: fixed;
    color: #f8fafc;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* dark overlay */
    z-index: -1;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    width: 100%;
    padding: 15px 50px;
    box-shadow: 0 2px 10px rgba(79, 78, 78, 0.5);
}

nav {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.3);
}

.navbar__logo {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav {
    position: relative;
    z-index: 10000;
}

.navbar_menu {
    list-style: none;
    display: flex;
    gap: var(--space-md);
}

.navbar_menu a {
    text-decoration: none;
    padding-left: 5px;
    color: #eee;
    transition: 0.3s;
}

.navbar_menu a:hover {
    color: #ebe4e4;
}

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.main {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.hero {
    text-align: center;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.hero p {
    color: #8a8d90;
}

.input-box {
    background: rgba(146, 138, 138, 0.05);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 15px;
    align-items: center;
}

textarea {
    flex: 1;
    height: 120px;
    border-radius: 10px;
    border: none;
    padding: 15px;
    font-size: 16px;
    resize: none;
    outline: none;
}

button {
    background: #808384;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #7b7e7e;
    transform: scale(1.05);
}

.cards-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    perspective: 1000px;
    height: 180px;
}

.inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card:hover .inner {
    transform: rotateY(180deg);
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    padding: 20px;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.front {
    background: #838787;
}

.back {
    background: #484949;
    color: black;
    transform: rotateY(180deg);
}

@media (max-width: 768px) {
    .input-box {
        flex-direction: column;
    }
    button {
        width: 100%;
    }
    textarea {
        width: 100%;
    }
    .hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .nav {
        text-align: center;
    }
    .hero h1 {
        font-size: 24px;
    }
    .card {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .navbar_menu {
        position: fixed;
        /* IMPORTANT */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* full screen */
        background: rgba(0, 0, 0, 0.98);
        /* strong background */
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        display: none;
        z-index: 9999;
        /* above everything */
    }
    .navbar_menu.active {
        display: flex;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        color: white;
        z-index: 10001;
        /* above menu */
    }
    .navbar_menu {
        display: none;
        /* hide menu by default */
    }
}