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

/* BRAND */
:root {
    --yellow: #f5c400;
    --grey: #777;
    --bg: #ffffff;
    --text: #222;
    --header: #f2f2f2;
}

body.dark-mode {
    --bg: #1f1f1f;
    --text: #ffffff;
    --header: #2a2a2a;
}

/* LAYOUT */
html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, color 0.3s ease;
}

main {
    flex: 1;
}

.hidden {
    display: none;
}

h1, h2 {
    color: var(--yellow);
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--header);
}

.logo img {
    height: 50px;
}

/* BUTTONS */
nav button,
#toggleMode {
    padding: 10px 18px;
    border-radius: 30px;
    border: 2px solid var(--grey);
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
}

nav button:hover,
#toggleMode:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

/* SECTIONS */
.content-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

/* WORK GRID */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-card img {
    width: 100%;
    display: block;
}

.project-card span {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.6);
    color: var(--yellow);
    font-weight: 600;
}

/* ABOUT */
.about-wrapper {
    display: flex;
    gap: 30px;
    align-items: center;
}

.about-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--yellow);
}

.cta {
    margin-top: 20px;
    font-weight: bold;
}
.cv{
   margin-top: 20px; 
   color: #f5c400;
}

/* CONTACT FORM */
form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
}

textarea {
    min-height: 150px;
}

form button {
    padding: 12px;
    border-radius: 30px;
    border: 2px solid var(--yellow);
    background: transparent;
    color: var(--text);
    font-weight: bold;
    cursor: pointer;
}

form button:hover {
    background: var(--yellow);
    color: #000;
}

.form-status {
    margin-top: 20px;
    text-align: center;
    color: var(--yellow);
    font-weight: bold;
}

/* PROJECT PAGE */
.project-page {
    max-width: 900px;
    margin: auto;
    padding: 60px 20px;
}

.project-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    color: var(--grey);
}

.project-gallery img,
.project-gallery video {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
}

/* FOOTER */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

footer a {
    color: #f5c400;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }
}
