:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --rao-green: #00a651;
    --ink-red: #d71e27;
    --navbar-bg: #000000; 
    --icon-circle-bg: #333333;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px; 
    background: var(--navbar-bg);
    border-bottom: 3px solid var(--ink-red); 
    z-index: 2000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo img {
    height: 120px; 
    width: auto;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    justify-content: center;
    flex: 3;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.icon-circle {
    width: 75px; 
    height: 75px;
    background: var(--icon-circle-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    font-size: 2rem; 
    color: var(--text-color);
    border: 3px solid transparent; 
    transition: all 0.3s ease;
}

.nav-links a span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem; 
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--rao-green); 
}

.nav-links a:hover .icon-circle {
    background: rgba(0, 166, 81, 0.1); 
    border-color: var(--rao-green);
    color: var(--rao-green);
    transform: translateY(-6px);
}

.dropdown {
    position: relative;
}

.submenu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 110%;
    left: 0;
    background: #111;
    list-style: none;
    padding: 15px;
    border-radius: 12px;
    min-width: 200px;
    border: 2px solid var(--ink-red);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 8px 15px rgba(0,0,0,0.8);
    z-index: 2100;
}

.submenu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 30px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--ink-red);
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.submenu li a {
    font-size: 1.05rem;
    display: block;
    padding: 10px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0;
    flex-direction: row;
    color: #ccc;
}

.submenu li a:hover {
    color: var(--rao-green);
    background: rgba(255,255,255,0.05);
}

.btn-orcamento {
    background: var(--rao-green); 
    color: #000 !important;
    padding: 12px 30px; 
    border-radius: 35px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-weight: bold;
}

.banner {
    position: relative;
    width: 100%;
    height: 80vh; 
    overflow: hidden;
    margin-top: 155px; 
    background-color: #000;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.4);
    z-index: 1;
}

.slide-img {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
}

.banner-text h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2.8rem, 9vw, 5.5rem); 
    text-align: center;
    color: white;
    text-shadow: 0 5px 20px rgba(0,0,0,0.9);
    width: 100%;
    z-index: 10;
}

.portfolio-section {
    padding: 40px 20px; 
    margin-top: 50px;  
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    color: var(--ink-red);
    margin-bottom: 40px; 
    text-transform: uppercase;
}

.grid-portfolio {
    column-count: 4;
    column-gap: 20px;
    width: 100%;
}

.grid-item-masonry {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    background: #111;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
}

.grid-item-masonry img {
    width: 100%;
    height: auto; 
    display: block;
    transition: 0.5s ease;
}

.grid-item-masonry:hover {
    border-color: var(--rao-green);
    transform: translateY(-5px);
}

footer {
    background: #0a0a0a;
    padding: 60px 20px 30px; 
    border-top: 3px solid var(--rao-green); 
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-info {
    text-align: center;
}

.footer-info h3 {
    font-size: 2.3rem; 
    margin-bottom: 15px;
    color: var(--ink-red); 
}

.footer-info p {
    margin: 8px 0;
    font-size: 1.1rem;
    color: #ccc;
}

.footer-info a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-info a:hover {
    color: var(--rao-green);
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.3;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
        flex-direction: column;
        gap: 12px;
    }

    .logo img {
        height: 60px;
    }

    .nav-links {
        gap: 8px;
        width: 100%;
        justify-content: space-around;
        position: relative;
    }

    .icon-circle {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .nav-links a span {
        font-size: 0.75rem;
    }

    .nav-right {
        display: none;
    }

    .banner {
        margin-top: 135px; 
        height: 65vh;
    }

    .portfolio-section {
        margin-top: 30px;
    }

    .grid-portfolio {
        column-count: 2;
    }

    .submenu {
        left: 10px;
        transform: none;
        min-width: 180px;
        top: 95%;
    }

    .submenu::before {
        left: 20px;
    }
}

@media (max-width: 480px) {
    .grid-portfolio {
        column-count: 1;
    }
    
    .banner {
        margin-top: 155px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .submenu {
        left: 5px;
        min-width: 160px;
    }

    .submenu::before {
        left: 15px;
    }
}

.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.modal-content {
    max-width: 90%; 
    max-height: 85vh; 
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    animation: zoomSuave 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomSuave {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.close-modal:hover {
    opacity: 1;
    color: var(--ink-red);
}

.grid-item-masonry img {
    cursor: zoom-in;
}