/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* To avoid horizontal scrollbars during animations */
    padding-top: 90px; /* Adjust this value based on your header height */
}

/* Animações keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromBottom {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Header and Navigation */
header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideInFromTop 0.5s ease-out;
    top: 0;
}

@keyframes slideInFromTop {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    animation: fadeIn 0.8s ease-in-out;
    transition: transform 0.3s ease;
}

.logo-image {
    height: 70px;
    width: auto;
    max-width: 100%;
}

.logo:hover {
    transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden by default on all devices */
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border-radius: 50%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 10px;
    position: relative;
}

.hamburger-menu:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.hamburger-menu:active {
    transform: scale(0.95);
}

.bar1, .bar2, .bar3 {
    width: 26px;
    height: 2px;
    background-color: #333;
    margin: 4px 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.3s ease;
    border-radius: 2px;
}

/* Hamburger menu animation */
.hamburger-menu.active .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .bar2 {
    opacity: 0;
    transform: translateX(-8px);
}

.hamburger-menu.active .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile menu backdrop */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
    display: none; /* Hidden by default on all devices */
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-links li {
    animation: fadeIn 0.5s ease-in-out;
    animation-fill-mode: both;
}

.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-links li:nth-child(3) { animation-delay: 0.3s; }
.nav-links li:nth-child(4) { animation-delay: 0.4s; }
.nav-links li:nth-child(5) { animation-delay: 0.5s; }

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000c9;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fbfbfb;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Auth Buttons in Navbar */
.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
}

/* Language selector positioning */
.lang-selector-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

/* When language selector is the last item, position it at the far right */
.nav-links > li:last-child.lang-selector-wrapper {
    margin-left: auto;
}

/* Keep auth buttons and language selector together */
.auth-buttons + .lang-selector-wrapper {
    margin-left: 1rem;
}

.login-button,
.register-button {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-button,
.register-button {
    color: #333;
    border: 1px solid #333;
}

.login-button:hover,
.register-button:hover {
    background: #000000c9;  
    color: rgb(255, 255, 255);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.login-button:active,
.register-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* User Display */
.user-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: auto;
    padding: 0;
    background: none;
    border-radius: 0;
    margin: 0;
}

.user-display span {
    font-weight: 500;
    margin-right: 0;
}

.user-display a {
    color: #000000c9;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.user-display a:hover {
    text-decoration: underline;
    transform: translateY(-2px);
}

/* Logout link styling for horizontal layout */
.logout-link {
    color: #ff5252;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logout-link:hover {
    color: #ff0000;
    text-decoration: underline;
    transform: translateY(-2px);
}

.user-greeting {
    display: block;
    width: 100%;
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    font-weight: 500;
}

.user-panel {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: auto;
}

/* Remove any existing user-nav-links specific styling that could conflict */
.user-nav-links {
    display: none;
}

/* Hero Section */
#hero {
    height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Background Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    margin-top: 10.7px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.7s ease;
    z-index: 0;
    transform: none !important;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Specific adjustments for individual slides to ensure they display properly */
.hero-slide:nth-child(1) {
    background-image: url('assets/home bg/living-room-2155376_1920-1920x500.jpg');
    background-position: right center;
}

.hero-slide:nth-child(2) {
    background-image: url('assets/home bg/space-3197611_1920-750x379.jpg');
    background-position: left center;
}

.hero-slide:nth-child(3) {
    background-image: url('assets/home bg/Energy-e1522744412889-1920x500.jpg');
    background-position: center center;
}

.hero-slide:nth-child(4) {
    background-image: url('assets/home bg/interior-e1522744116738-1280x500.jpg');
    background-position: center center;
}

.hero-slide:nth-child(5) {
    background-image: url('assets/home bg/Colored-pipes-1920x500.jpg');
    background-position: center center;
}

.hero-slide:nth-child(6) {
    background-image: url('assets/home bg/image.png');
    background-position: center center;
}

.hero-content {
    position: relative;
    z-index: 1; /* Ensure content is above the slideshow */
    max-width: 800px;
    padding: 2rem;
    animation: fadeIn 1.5s ease-in-out;
    pointer-events: none; /* Let mouse events pass through to the slideshow */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInFromBottom 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
    pointer-events: auto; /* Allow interaction with the heading */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideInFromBottom 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    animation: slideInFromBottom 0.8s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: #000000c9;
    color: #fff;
}

.cta-button:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.client-dashboard-button {
    background: #000000c9;
    color: #fff;
    animation-delay: 0.8s;
}

.client-dashboard-button:hover {
    background: #fff;
    color: #333;
}

/* Projects Section */
#projects {
    padding: 5rem 2rem;
    background: #f9f9f9;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-play-state: paused;
}

#projects.visible {
    animation-play-state: running;
}

#projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

#projects h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #000000c9;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
}

.project-card h3 {
    font-size: 1.2rem;
    margin: 1rem 1rem 0.5rem;
    color: #333;
}

.project-card p {
    margin: 0 1rem 1rem;
    color: #666;
    font-size: 0.9rem;
}

.view-project-btn {
    display: inline-block;
    margin: 0 1rem 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.view-project-btn:hover {
    background-color: #000;
}

/* Project image placeholders */
.project-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

/* About Section */
.about {
    padding: 50px 20px;
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about h2 {
    margin-bottom: 30px;
    color: #333;
}

.about-text {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

/* Desktop paragraph styling */
.desktop-paragraph {
    display: block;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Mobile paragraph styling - hidden by default on desktop */
.mobile-paragraph {
    display: none;
}

/* Show More/Less Button Styling */
.about-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-weight: 500;
    padding: 5px 10px;
    margin: 10px auto;
    align-items: center;
    justify-content: center;
}

.about-toggle-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.about-toggle-btn:focus {
    outline: none;
}

.about-text.expanded .about-toggle-btn i {
    transform: rotate(180deg);
}

.show-more-text {
    display: inline;
}

.show-less-text {
    display: none;
}

.about-text.expanded .show-more-text {
    display: none;
}

.about-text.expanded .show-less-text {
    display: inline;
}

/* Media query for tablets and below */
@media (max-width: 768px) {
    .about-text {
        text-align: justify;
    }
    
    /* Hide desktop paragraph on mobile */
    .desktop-paragraph {
        display: none;
    }
    
    /* Show mobile paragraphs */
    .mobile-paragraph {
        display: block;
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    /* Show the toggle button */
    .about-toggle-btn {
        display: flex;
    }
    
    /* Hide collapsible content by default */
    .collapsible-content {
        display: none;
    }
    
    /* Show collapsible content when expanded */
    .about-text.expanded .collapsible-content {
        display: block;
    }
}

/* Media query for phones */
@media (max-width: 480px) {
    .mobile-paragraph {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
}

/* Contact Section */
#contact {
    padding: 5rem 2rem;
    background: #f9f9f9;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-play-state: paused;
}

#contact.visible {
    animation-play-state: running;
}

#contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

#contact h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #000000c9;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #000000c9;
    box-shadow: 0 0 10px rgba(87, 0, 0, 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
    transition: all 0.3s ease;
}

.submit-button {
    padding: 1rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    background: #000000c9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Efeito de ripple para botões */
.submit-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.submit-button:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Footer Styles */
footer {
    background-color: #000000c9;
    color: #fff;
    padding: 2rem 0;
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #d3d3d3;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.powered-by {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.powered-by p {
    margin: 0;
    opacity: 0.7;
}

.powered-by a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.powered-by a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .menu-backdrop {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        background: white;
        height: 100vh;
        width: 270px;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 1.5rem;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        overflow-y: auto;
    }
    
    /* Language selector mobile positioning */
    .lang-selector-wrapper {
        margin: 1rem 0;
        width: 100%;
    }
    
    /* Keep language selector at bottom in mobile menu */
    .nav-links > li:last-child.lang-selector-wrapper {
        margin-top: auto;
        margin-bottom: 2rem;
    }
    
    /* Handle auth buttons in mobile view */
    .auth-buttons {
        flex-direction: column;
        margin-left: 0;
        width: 100%;
        gap: 1rem;
    }
    
    .auth-buttons + .lang-selector-wrapper {
        margin-top: 1.5rem;
        margin-left: 0;
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        width: 100%;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
    
    .nav-links a {
        width: 100%;
        display: block;
        padding: 0.7rem 0;
        font-size: 1.1rem;
    }
    
    .nav-links a::after {
        bottom: -2px;
    }
    
    .nav-links a:hover {
        color: #000;
    }
    
    .logout-link {
        margin-top: 1.5rem;
        width: 100%;
        padding: 0.8rem 1rem;
        text-align: center;
        border-radius: 8px;
        background-color: #f35d5d;
        color: white;
        font-weight: 500;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: none;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .logout-link:hover {
        background-color: #f35d5d;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        color: white;
        text-decoration: none;
    }

    .logout-link:active, 
    .logout-link:focus {
        text-decoration: none;
        color: white;
        background-color: #f35d5d;
        outline: none;
    }

    .logout-link:visited {
        color: white;
        text-decoration: none;
    }

    /* User display for mobile */
    .user-display {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.8rem;
        padding: 1rem 0.5rem;
        margin-top: 1rem;
        background: rgba(0, 0, 0, 0.02);
        border-radius: 10px;
    }
    
    .user-display span {
        margin-right: 0;
        padding: 0.5rem 0;
    }
    
    .user-display a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .user-panel {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    /* Hero adjustments for mobile */
    #hero {
        height: 60vh; /* Increased from 50vh for a more moderate reduction */
    }
    
    .hero-content h1 {
        font-size: 2.5rem; /* Smaller font size */
    }
}

/* Additional adjustments for iPhone and smaller screens */
@media (max-width: 480px) {
    #hero {
        height: 40vh; /* Decreased from 55vh */
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .slideshow-dots {
        bottom: 10px; /* Move dots closer to bottom on small screens */
    }
    
    .slideshow-dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    
    /* Improve image fitting on mobile */
    .hero-slide {
        background-size: cover;
        background-position: center;
    }
}

/* For very small screens like iPhone SE */
@media (max-width: 375px) {
    #hero {
        height: 40vh; /* Decreased from 50vh */
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
}

/* Auth Pages Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('assets/home image.png') center/cover fixed;
    animation: fadeIn 0.8s ease-in-out;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.auth-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    animation: slideInFromBottom 0.5s ease-out;
    margin: 0 auto;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    position: relative;
}

.auth-box h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #000000c9;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeIn 0.5s ease-in-out;
}

.form-group label {
    font-weight: 500;
    color: #555;
}

.form-group input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #000000c9;
    box-shadow: 0 0 10px rgba(87, 0, 0, 0.1);
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    animation: fadeIn 0.5s ease-in-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.auth-link a {
    color: #000000c9;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Estilos para a página de Contato */
.contact-hero {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('assets/home image.png') center/cover fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 10px;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInFromBottom 0.8s ease-out;
}

.contact-hero p {
    font-size: 1.2rem;
    animation: slideInFromBottom 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Seção de informações de contato */
.contact-info {
    padding: 5rem 0;
    background: white;
}

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

.contact-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-card .icon {
    font-size: 2.5rem;
    color: #570000;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-card p {
    color: #666;
    line-height: 1.6;
}

.contact-card a {
    color: #570000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Seção de formulário e mapa */
.contact-form-section {
    padding: 5rem 0;
    background: #f9f9f9;
}

.form-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-container, .map-container {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-container h2, .map-container h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
    position: relative;
}

.form-container h2::after, .map-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #570000;
}

.map {
    height: 450px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.map iframe {
    width: 100%;
    height: 100%;
}

/* Seção de conexão social */
.social-connect {
    padding: 5rem 0;
    background: white;
    text-align: center;
}

.social-connect h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
    position: relative;
}

.social-connect h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #570000;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #570000;
}

.social-icon:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Footer melhorado */
.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-info {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 992px) {
    .form-map-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Map Controls and Street View Button */
.map-controls {
    margin-top: 15px;
    text-align: center;
}

.streetview-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #4285F4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.streetview-button:hover {
    background-color: #3367D6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.streetview-button i {
    margin-right: 8px;
}

/* Enhanced map styling */
.map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.map:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Enhanced Map Styles for Contact Page */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
}

.map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.map.active {
    opacity: 1;
    visibility: visible;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Map Toggle Controls */
.map-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.map-toggle {
    display: flex;
    background-color: #f5f5f5;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 3px;
}

.map-toggle button {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 25px;
}

.map-toggle button.active {
    background-color: #3C3C3C;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.map-toggle button:focus {
    outline: none;
}

/* Map Info Section */
.map-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.map-address {
    display: flex;
    align-items: center;
    color: #333;
}

.map-address i {
    color: #3C3C3C;
    font-size: 18px;
    margin-right: 10px;
}

.directions-button {
    display: inline-flex;
    align-items: center;
    background-color: #3C3C3C;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.directions-button:hover {
    background-color: #1f1f1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.directions-button i {
    margin-right: 8px;
    font-size: 16px;
}

/* Improve Map Container Design */
.map-container h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #333;
    position: relative;
}

.map-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #3C3C3C;
}

/* Form Container Enhancement */
.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.form-container h2::after {
    background: #3C3C3C;
}

/* Submit Button Enhancement */
.submit-button {
    background: #3C3C3C;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px;
}

.submit-button:hover {
    background: #1a1a1a;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .map-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .map-address {
        text-align: center;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .directions-button {
        width: 100%;
        justify-content: center;
    }
}

/* Add iPad/tablet specific styles */
@media (min-width: 768px) and (max-width: 1024px) {
    #hero {
        height: 45vh;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Animation Classes */
.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

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

/* Slideshow Navigation Dots */
.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100 !important;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5) !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dot.active {
    background-color: #ffffff !important;
    transform: scale(1.2);
}

/* Featured Projects Styling */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.loading-spinner .spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-projects, .error-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
    width: 100%;
}

.error-message {
    color: #d32f2f;
}

.error-message i {
    margin-right: 8px;
}

/* Drag indicator styling */
.drag-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 5;
    pointer-events: none; /* Don't interfere with drag events */
    animation: fadeInUp 0.5s ease-out, pulse 2s infinite 1s;
}

.drag-indicator i {
    margin: 0 10px;
    font-size: 0.8rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Remover todos os estilos que possam interferir */
.hero-slide.slide-enter-next,
.hero-slide.slide-enter-prev,
.hero-slide.slide-exit-next,
.hero-slide.slide-exit-prev,
.hero-slide.temp-active {
    animation: none !important;
    transform: none !important;
    opacity: 0 !important;
    z-index: 0 !important;
}

.admin-link {
    display: inline;
    width: auto;
    padding: 0;
    margin: 0;
    text-align: left;
    border-radius: 0;
    background-color: transparent;
    color: #000000c9;
    font-weight: 500;
    letter-spacing: normal;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    box-shadow: none;
}

.admin-link:hover {
    background-color: transparent;
    transform: translateY(-2px);
    box-shadow: none;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .admin-link {
        display: block;
        width: 100%;
        padding: 0.8rem 1rem;
        margin: 0.5rem 0;
        text-align: center;
        border-radius: 8px;
        background-color: #f8f8f8;
        color: #333;
        font-weight: 500;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }
    
    .admin-link:hover {
        background-color: #ebebeb;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-decoration: none;
    }
} 