:root {
    --bg-color: #0a0a0a;
    --text-color: #ededed;
    --accent-color: #0070f3;
    --secondary-text: #a0a0a0;
    --nav-bg: rgba(10, 10, 10, 0.9);
    --border-color: #2a2a2a;
    --card-bg: #111;
    --card-hover-border: #555;
    --tag-bg: #222;
    --tag-border: #333;
    --font-stack: 'Inter', sans-serif;
    --h1-clamp: clamp(2.8rem, 6vw, 4rem);
    --main-padding-top: 160px;
    --border-radius: 12px;
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    gap: 2rem 15%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 50%;
    flex-shrink: 0;
}

.logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    /* transition: filter 0.2s ease-in-out; 
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); */
}

/* .logo:hover {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7)); 
} */

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-direction: row;
    flex-shrink: 0;
    flex-basis: auto;
}

.nav-links .nav-item {
    text-decoration: none;
    color: var(--secondary-text);
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links .nav-item:hover {
    color: var(--text-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: 0.3s;
}

@media (max-width: 768px) {

    .logo {
    max-width: 250px;
}
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        max-width: 70%;
        min-width: 250px;
        background: var(--bg-color);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        padding-top: 100px;
        justify-content: top;
        align-items: center;
        transition: 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    /* Animate hamburger to X */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

footer {
    padding: 2rem 10%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text);
    font-size: 0.8rem;
}

/* Content */
header {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* padding: 0 10%; */
    margin-bottom: 6rem;
}

main {
    padding: var(--main-padding-top) 10% 80px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 88vh;
}

section {
    /* padding: 100px 10%; */
    /* max-width: 900px; */
    margin: 0 auto;
}

/* ### Text ### */
h1 {
    font-weight: 600;
    font-size: var(--h1-clamp);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.text-accent {
    color: var(--accent-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.header-secondary {
    color: var(--secondary-text);
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.text-description {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* ### Buttons ### */

.button-action {
    padding: 0.8rem 2rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.button-action:hover {
    transform: translateY(-2px);
}

/* ### Cards ### */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: 0.3s ease;
    overflow: hidden;
}

.card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-5px);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.card-tag {
    background: var(--tag-bg);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-color);
    border: 1px solid var(--tag-border);
}

.card-links {
    display: flex;
    gap: 1rem;
}

.card-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--secondary-text);
    transition: 0.3s;
}

.card-link:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.project-image-placeholder {
    width: 100%;
    height: 200px; /* Adjust height as needed */
    background-color: #1a1a1a; /* Dark gray for placeholder */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333; /* Even darker gray for text/icon */
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.2rem
}

/*
.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
*/

/* ### Forms ### */

.form-wrapper {
    max-width: 600px;
}

form {
    display: flex; 
    flex-direction: column; 
    gap: 1rem;
}

.form-field {
    padding: 1rem; 
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    color: var(--text-color); 
    border-radius: 5px;
    font-family: var(--font-stack);
}

.form-status-msg-success, .form-status-msg-error {
    font-family: var(--font-stack);
    margin-top: 1rem; 
    font-size: 0.9rem;
}

.form-status-msg-success {
    color: #4ade80;
}

.form-status-msg-error {
    color: #f87171;
}

textarea {
    resize: vertical;
}

.contact-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; 
    gap: 2rem;
    align-items: baseline;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.contact-label {
    color: var(--secondary-text);
    font-size: 1.2rem;
}