:root {
    --bg: #0d1117;
    --card: #161b22;
    --text: #e6edf3;
    --accent: #4f8cff;
}
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

header {
    padding: 0.5rem 4rem;
    display: flex;
    position: sticky;
    top: 0px;
    justify-content: space-between;
    align-items: center;
    background-color: #161b22;
    z-index: 1000;
}

#projetos, #contato {
    scroll-margin-top: 100px;
}
#sobre {
    scroll-margin-top: 130px;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

nav a {
    margin-left: 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    transition: 0.2s;
}

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

.hero {
    text-align: center;
    padding: 4rem 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 4rem;
}

.projects .project-card:last-child {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .projects {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: 0.3s;
    border: 1px solid #222;
}

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

.project-card h3 {
    margin-bottom: 0.5rem;
    text-align: center;
}

.project-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
    margin-bottom: 15px;
}

.project-card .project-info {
    text-align: left;
    font-size: 0.8rem;
}

.gallery {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.main-display {
    width: 100%;
    height: 330px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.main-video {
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
}

.thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb {
    height: 70px;
    width: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    overflow: hidden;
}

#lightboxImage {
    position: fixed;
    border-radius: 10px;
    transform-origin: top left;
    transition: transform 0.4s ease, top 0.4s ease, left 0.4s ease;
}

.lightbox img {
    max-width: 70%;
    max-height: 70%;
    border-radius: 10px;
    transform: scale(0.1);
    transition: transform 0.4s ease, top 0.4s ease, left 0.4s ease;
    position: absolute;
}
.lightbox.show img {
    transform: scale(1);
}

.release-video {
    width: 70%;
    margin-left: 15%;
}

.feedback-columns {
    display: grid;
    grid-template-columns: 0.65fr 1.8fr 0.75fr;
    gap: 0.5rem;
}

.feedback-columns > div {
    display: grid;
    gap: 0.5rem;
}

.about {
    padding: 2rem 2rem;
    background: var(--card);
    border-radius: 1rem;
    margin: 2rem 4rem;
    transition: 0.3s;
    border: 1px solid #222;
    text-align: center;
}

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

.about p {
    max-width: 95%;
    margin: 0 auto;
    opacity: 0.85;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text);
}

.contact {
    padding: 2rem 2rem;
    margin: 2rem 4rem;
    background: var(--card);
    border-radius: 1rem;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--accent);
}

.contact-item a{
    font-size: 1rem;
    opacity: 0.85;
    color: var(--text);
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
}

.contact-item a:hover {
    color: var(--accent);
    opacity: 1;
}

footer {
    text-align: center;
    padding: 2rem;
    opacity: 0.6;
}