:root {
    --bg: #1B1C2E;
    --text: #EDEDED;
    --highlight: #D16BA5;
    --hover: #4A3F78;
    --dropdown: #2C2F3C;
    --card: #25233A;
    --footer: #141421;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    background: url('images/overpass.JPG') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 40, 0.6); /* semi-transparent dark layer */
    z-index: -1;
}


h2, h3, .brand {
    font-family: 'Space Grotesk', sans-serif;
}


a {
    color: var(--highlight);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px var(--highlight);
}

hr {
    width: 100%;
    border: none;
    border-top: 1px solid #444;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg);
    padding: 1em 5vw;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg);
    border-bottom: 1px solid #2c2c2c;
}

.left-side,
.right-side {
    display: flex;
    align-items: center;
    gap: 1.2em;
}

.navbar a,
.dropbtn {
    color: var(--text);
    padding: 10px 14px;
    font-size: 1em;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 6px;
}

.navbar a:hover,
.dropbtn:hover {
    background-color: var(--hover);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dropdown);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1;
    border-radius: 6px;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-align: left;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--hover);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Layout */
main {
    max-width: 900px;
    margin: 2em auto;
    padding: 0 1em;
}

.about-section h2,
.projects h2 {
    font-size: 1.8em;
    margin-bottom: 0.5em;
}

.about-section p {
    font-size: 1em;
}

/* Projects */
.project {
    background-color: var(--card);
    margin: 2em 0;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project:hover {
    transform: scale(1.01);
    box-shadow: 0 0 15px rgba(100, 210, 255, 0.3);
}

.project-title {
    font-size: 1.3em;
    margin-bottom: 0.5em;
}

.project-content {
    margin-bottom: 1em;
}

.project-content img,
.project-content iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2em 1em;
    background-color: var(--footer);
    font-size: 0.9em;
    margin-top: 4em;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .left-side,
    .right-side {
        flex-direction: column;
        gap: 0.5em;
    }

    .project-content iframe {
        height: 250px;
    }
}

.rating-tool {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--card);
    padding: 1.5em;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    margin: 2em 0;
}

.rating-tool input[type="text"] {
    padding: 0.6em 1em;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    margin-right: 1em;
    background-color: var(--dropdown);
    color: var(--text);
    width: 220px;
}

.rating-tool input[type="text"]::placeholder {
    color: #aaa;
}

.rating-tool button {
    padding: 0.6em 1.2em;
    font-size: 1em;
    background-color: var(--highlight);
    color: var(--text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: bold;
}

.rating-tool button:hover {
    background-color: var(--hover);
}

.rating-tool pre {
    background-color: var(--dropdown);
    color: var(--text);
    padding: 1em;
    margin-top: 1.2em;
    border-radius: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
    line-height: 1.5;
}

.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--highlight);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 1em;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
