/* Custom styles for Carneiro Tech - RED THEME */

/* Color Palette inspired by logo:
   Primary Red: #C42127 (vibrant red from logo)
   Dark Red: #8B1E23 (darker shade)
   Light Background: #FAF7F5 (warm beige/cream)
   Accent: #E63946 (bright red for hover)
*/

:root {
    --primary-red: #C42127;
    --dark-red: #8B1E23;
    --accent-red: #E63946;
    --light-bg: #FAF7F5;
    --cream: #FFF8F0;
}

/* Portfolio hover effect with overlay - IMPROVED */
.portfolio-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(196, 33, 39, 0.3);
}

.portfolio-hover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(196, 33, 39, 0.95); /* Red overlay instead of yellow */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
}

.portfolio-item:hover .portfolio-hover {
    opacity: 1;
}

.portfolio-hover-content {
    text-align: center;
    padding: 2rem;
}

.portfolio-hover-content p {
    color: #ffffff !important;
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Gradient backgrounds for cases without images - RED TONES */
.case-gradient-1 {
    background: linear-gradient(135deg, #C42127 0%, #8B1E23 100%);
}

.case-gradient-2 {
    background: linear-gradient(135deg, #E63946 0%, #C42127 100%);
}

.case-gradient-3 {
    background: linear-gradient(135deg, #D62828 0%, #9D0208 100%);
}

.case-gradient-4 {
    background: linear-gradient(135deg, #DC2F02 0%, #9D0208 100%);
}

.case-gradient-5 {
    background: linear-gradient(135deg, #F48C06 0%, #E85D04 100%);
}

.case-gradient-6 {
    background: linear-gradient(135deg, #8B1E23 0%, #5C0F13 100%);
}

/* Timeline icon styling - RED */
.timeline-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-red);
}

.timeline-image i {
    color: #ffffff;
}

/* Contact section background - RED GRADIENT */
#contact {
    background: linear-gradient(135deg, #C42127 0%, #8B1E23 100%);
    color: white;
}

/* Enhanced button styles - RED */
.btn-primary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #ffffff;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 33, 39, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #ffffff;
}

/* Badge styling - RED */
.badge.bg-primary {
    background-color: var(--primary-red) !important;
    color: #ffffff;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Case detail page enhancements - RED */
.case-content a {
    color: var(--primary-red);
    text-decoration: underline;
}

.case-content a:hover {
    color: var(--dark-red);
}

/* Masthead - Natural background with RED TEXT */
.masthead {
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Subtle dark overlay for better text contrast - LIGHTER */
.masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25); /* Apenas 25% de escurecimento */
    z-index: 1;
}

.masthead .container {
    position: relative;
    z-index: 2;
}

/* LIGHT NEUTRAL TEXT that complements red - professional look */
.masthead-subheading {
    color: #FFE4B5 !important; /* Bege claro dourado - warm neutral */
    text-shadow:
        3px 3px 8px rgba(0, 0, 0, 0.9),
        -1px -1px 3px rgba(0, 0, 0, 0.7),
        1px 1px 2px rgba(0, 0, 0, 0.5); /* Sombra escura para contraste */
    font-weight: 700;
    letter-spacing: 1px;
}

.masthead-heading {
    color: #FFF8DC !important; /* Cornsilk - creme claro quente */
    text-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.95),
        -2px -2px 4px rgba(0, 0, 0, 0.8),
        2px 2px 3px rgba(0, 0, 0, 0.6); /* Sombra escura forte */
    font-weight: 900;
    letter-spacing: 2px;
}

/* Services icon colors - RED */
.fa-stack .text-primary {
    color: var(--primary-red) !important;
}

/* Navbar styling - LIGHT CREAM BACKGROUND */
#mainNav {
    background-color: var(--light-bg) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#mainNav .navbar-nav .nav-link {
    color: #2c3e50 !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link:focus {
    color: var(--primary-red) !important;
}

#mainNav.navbar-shrink {
    background-color: var(--cream) !important;
}

/* Navbar toggler - RED */
.navbar-toggler {
    border-color: var(--primary-red);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(196, 33, 39, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar brand hover */
.navbar-brand:hover {
    opacity: 0.8;
}

/* Form control focus - RED */
.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(196, 33, 39, 0.25);
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease-in-out;
}

/* Tag buttons - RED THEME */
.btn-group-wrap .btn {
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.btn-group-wrap .btn-primary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-group-wrap .btn-outline-primary {
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-group-wrap .btn-outline-primary:hover {
    background-color: var(--primary-red);
    color: white;
}

/* Portfolio caption styling */
.portfolio-caption {
    padding: 1.5rem;
    background-color: #ffffff;
}

.portfolio-caption-heading {
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.portfolio-caption-subheading {
    color: #6c757d;
}

/* Section headings - RED accents */
.section-heading {
    color: #212529;
    position: relative;
    padding-bottom: 1rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-red);
}

/* Footer styling */
.footer {
    background-color: #212529;
    color: #ffffff;
}

.footer a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-red);
}

/* Button social - RED */
.btn-social {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transition: all 0.3s ease;
}

.btn-social:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-hover-content p {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .timeline-image i {
        font-size: 2rem !important;
    }

    #mainNav {
        background-color: var(--cream) !important;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Portfolio item image container */
.portfolio-item img,
.portfolio-item > a > div[style*="height"] {
    width: 100%;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img,
.portfolio-item:hover > a > div[style*="height"] {
    transform: scale(1.05);
}
