/* Global Variables */
:root {
    --color-primary: #0B1C3E;
    /* Deep Blue */
    --color-secondary: #D4AF37;
    /* Gold */
    --color-bg: #F9F9F9;
    /* Off-white */
    --color-text: #333333;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Sora', sans-serif;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Base Styles */
body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: var(--font-display);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    transition: all 0.4s ease;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background: transparent;
}

.navbar.scrolled {
    background-color: var(--color-primary);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    opacity: 0.9;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--color-secondary) !important;
}

/* Buttons */
.btn-gold {
    background-color: var(--color-secondary);
    color: white;
    border: 2px solid var(--color-secondary);
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('banner.jpeg') no-repeat center center scroll;
    background-size: cover;
    margin-top: -100px;
    /* Pull up behind transparent navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 28, 62, 0.9) 0%, rgba(11, 28, 62, 0.5) 100%);
    z-index: 1;
}

/* Utilities */
.section-padding {
    padding: 100px 0;
}


/* About Section */
.img-fluid {
    transition: transform 0.3s ease;
}

.img-fluid:hover {
    transform: scale(1.02);
}

/* Services Section */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

.img-cover {
    object-fit: cover;
    object-position: center;
}

/* Portfolio Section */
.portfolio-wrap {
    transition: 0.3s;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.portfolio-wrap:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.portfolio-wrap img {
    transition: 0.3s;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.portfolio-wrap:hover img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 28, 62, 0.9) 0%, rgba(11, 28, 62, 0) 100%);
    padding: 20px;
    z-index: 2;
    color: white;
    opacity: 0;
    transition: 0.3s;
    transform: translateY(20px);
}

.portfolio-wrap:hover .portfolio-info {
    opacity: 1;
    transform: translateY(0);
}

.btn-outline-dark {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-dark:hover,
.btn-outline-dark.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-secondary);
}

/* Modal Styles */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.modal-header .btn-close {
    background-color: #f0f0f0;
    border-radius: 50%;
    padding: 0.8rem;
    opacity: 1;
    transition: 0.3s;
}

.modal-header .btn-close:hover {
    background-color: #e0e0e0;
    transform: rotate(90deg);
}

.project-gallery-img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    cursor: zoom-in;
    transition: 0.3s;
}

.project-gallery-img:hover {
    opacity: 0.9;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-secondary);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: transparent;
    border: none;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-secondary);
}

#contato {
    background-color: var(--color-primary) !important;
    /* Override standard dark */
}

.form-control,
.form-select {
    border-radius: 4px;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: var(--color-secondary);
}

/* Footer override */
footer {
    background-color: #050d1e !important;
    /* Even darker blue */
}

/* Splide Customization */
.splide__arrow {
    background: rgba(255, 255, 255, 0.8);
    opacity: 0.7;
    transition: all 0.3s;
}

.splide__arrow:hover {
    background: #D4AF37;
    /* Gold */
    opacity: 1;
}

.splide__arrow svg {
    fill: #0B1C3E;
    /* Deep Blue */
}

.splide__pagination__page.is-active {
    background: #D4AF37;
    transform: scale(1.2);
}


/* Carousel Customization */
.carousel-item {
    height: 300px;
}

.carousel-item img {
    height: 300px;
    object-fit: cover;
    cursor: zoom-in;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.2);
}

.carousel-indicators {
    margin-bottom: 0.5rem;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
}

/* Utilities */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Mobile Navbar Customization */
@media (max-width: 991.98px) {
    .navbar {
        background-color: var(--color-primary);
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}