/* BASE STYLES */
body {
    background: var(--primary);
    font-family: 'Poppins', sans-serif;
    color: var(--text-black);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--container-padding);
    background: var(--primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-black);
    text-decoration: none;
    letter-spacing: -0.5px;
}

nav a {
    text-decoration: none;
    margin-left: 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-black);
    position: relative;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary);
}

/* BUTTONS */
.btn-primary {
    background: var(--secondary);
    color: var(--text-black);
    padding: 12px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.btn-primary:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

/* LAYOUT */
main {
    min-height: 80vh;
}

section {
    padding: var(--section-padding);
    max-width: 1200px;
    margin: 0 auto;
}

/* PROJECTS GRID */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-top: 0;
}

/* FORMS */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

form label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

form input,
form textarea {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

/* FOOTER */
footer {
    background: var(--gray-light);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}