/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2d5f7e;
    --secondary-blue: #1e3a5f;
    --light-blue: #4a8fb3;
    --dark-blue: #0f2438;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --text-dark: #212529;
    --text-gray: #6c757d;
}

html {
    scroll-behavior: smooth;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ========================================
   Performance Optimizations
   ======================================== */
/* Lazy Loading Images */
img[lazy-load] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.lazy-loading {
    background: var(--medium-gray);
    min-height: 200px;
}

img.lazy-loaded {
    opacity: 1;
}

/* Hardware Acceleration */
.carousel-item,
.portfolio-group-card,
.testimonial-card {
    will-change: auto;
    transform: translateZ(0);
}

.hero-slide-bg {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.service-card {
    will-change: auto;
    transform: translateZ(0);
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-line {
        animation: none;
    }
    
    .hero-slide-bg img {
        animation: none !important;
    }
}

/* ========================================
   Header & Navigation - Bootstrap Override
   ======================================== */
.navbar {
    padding: 5px 0 !important;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    max-width: 100vw;
}

.navbar .container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

.navbar-brand {
    margin-left: 60px;
}

.navbar-brand img {
    height: 150px;
    width: auto;
    transition: height 0.3s ease;
    max-width: 100%;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 8px 20px !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 40px);
}

.cta-button {
    background: var(--primary-blue) !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.cta-button:hover {
    background: var(--secondary-blue) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(45, 95, 126, 0.3) !important;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

/* Force carousel fade effect */
#heroCarousel.carousel.slide {
    position: relative;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1.2s ease-in-out !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none !important;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    transition: opacity 1.2s ease-in-out !important;
    z-index: 2;
}

.carousel-fade .carousel-item-next:not(.carousel-item-start),
.carousel-fade .active.carousel-item-end {
    opacity: 0;
    transition: opacity 1.2s ease-in-out !important;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.carousel-item.active .hero-slide-bg img {
    animation: zoomIn 20s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.65) 0%, rgba(45, 95, 126, 0.55) 100%);
    z-index: 1;
}

.carousel-inner,
.carousel-item {
    height: 100vh;
    min-height: 100vh;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    background: var(--white) !important;
    color: var(--primary-blue) !important;
    border: none !important;
    padding: 16px 45px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Hero Carousel Controls */
.carousel-control-prev.hero-control-prev,
.carousel-control-next.hero-control-next {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.carousel-control-prev.hero-control-prev:hover,
.carousel-control-next.hero-control-next:hover {
    background: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-50%) scale(1.1) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
}

.carousel-control-prev.hero-control-prev .carousel-control-prev-icon,
.carousel-control-next.hero-control-next .carousel-control-next-icon {
    width: 30px !important;
    height: 30px !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    background-size: 100% 100% !important;
}

.carousel-control-prev.hero-control-prev {
    left: 30px !important;
}

.carousel-control-next.hero-control-next {
    right: 30px !important;
}

/* Hero Indicators */
.hero-indicators {
    bottom: 80px;
    z-index: 3;
}

.hero-indicators [data-bs-target] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 6px;
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-indicators .active {
    width: 50px;
    border-radius: 7px;
    background-color: var(--white);
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 1s ease forwards;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.6);
    margin: 0 auto;
    animation: scrollAnimation 2s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes scrollAnimation {
    0% { 
        transform: translateY(0); 
        opacity: 0; 
    }
    50% { 
        transform: translateY(20px); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(0); 
        opacity: 0; 
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Hero */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-control-prev,
    .hero-control-next {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.3);
    }
    
    .hero-control-prev .carousel-control-prev-icon,
    .hero-control-next .carousel-control-next-icon {
        width: 24px;
        height: 24px;
    }
    
    .hero-control-prev {
        left: 15px;
    }
    
    .hero-control-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        padding: 14px 35px !important;
        font-size: 1rem !important;
    }
    
    .hero-control-prev,
    .hero-control-next {
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.35);
    }
    
    .hero-control-prev .carousel-control-prev-icon,
    .hero-control-next .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    
    .hero-control-prev {
        left: 10px;
    }
    
    .hero-control-next {
        right: 10px;
    }
    
    .hero-indicators {
        bottom: 60px;
    }
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--white);
    position: relative;
    z-index: 10;
    padding-top: 100px !important;
    content-visibility: auto;
    contain-intrinsic-size: auto 700px;
}

.about::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
    background-image: url('Mauricio Rocha_Simbolo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.section-title {
    font-size: 1.2rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-headline {
    font-size: 3rem;
    color: var(--text-dark);
    line-height: 1.3;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    background: var(--light-gray);
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}

.stats::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
    background-image: url('Mauricio Rocha_Simbolo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.stats-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.stat-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.stat-description {
    color: var(--text-gray);
    font-size: 1rem;
}

/* ========================================
   Portfolio Section
   ======================================== */
.portfolio {
    background: var(--white);
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

.portfolio-subtitle {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    cursor: pointer;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 80px;
    height: 80px;
    background-image: url('Mauricio Rocha_Logo_FINAL.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.portfolio-item:hover::before {
    opacity: 0.35;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.95), transparent);
    color: var(--white);
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.portfolio-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background: var(--light-gray);
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(45, 95, 126, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ========================================
   Testimonials Section - Bootstrap Carousel Override
   ======================================== */
.testimonials {
    background: var(--white);
    padding: 60px 0 80px 0 !important;
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

.testimonials-subtitle {
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 600;
}

#testimonialsCarousel {
    margin-bottom: 0;
}

#testimonialsCarousel .carousel-inner,
#testimonialsCarousel .carousel-item {
    height: auto;
    min-height: auto;
}

.testimonial-card {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.carousel-inner {
    margin-bottom: 0;
}

.testimonial-text {
    font-size: 1.3rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-weight: 600;
}

.testimonial-author p {
    color: var(--text-gray);
    margin-bottom: 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--secondary-blue);
}

.carousel-control-prev {
    left: -70px;
}

.carousel-control-next {
    right: -70px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    border: none;
    margin: 0 5px;
    opacity: 1;
}

.carousel-indicators .active {
    width: 40px;
    border-radius: 6px;
    background-color: var(--primary-blue);
}

/* ========================================
   FAQ Section - Bootstrap Accordion Override
   ======================================== */
.faq {
    background: var(--light-gray);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
    background-image: url('Mauricio Rocha_Simbolo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.accordion-item {
    background: var(--white) !important;
    border: none !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    padding: 25px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    background: var(--white) !important;
    border: none !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-blue) !important;
    background: var(--white) !important;
}

.accordion-button::after {
    background-image: none !important;
    content: '+' !important;
    font-size: 1.5rem !important;
    color: var(--primary-blue) !important;
    width: auto !important;
    height: auto !important;
}

.accordion-button:not(.collapsed)::after {
    content: '−' !important;
    transform: none !important;
}

.accordion-button:hover {
    color: var(--primary-blue) !important;
}

.accordion-body {
    padding: 0 30px 25px !important;
    color: var(--text-gray) !important;
    line-height: 1.8 !important;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--white);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
    background-image: url('Mauricio Rocha_Simbolo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.contact-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-blue);
}

.form-control {
    padding: 15px 20px !important;
    border: 2px solid var(--medium-gray) !important;
    border-radius: 10px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    outline: none !important;
    border-color: var(--primary-blue) !important;
    box-shadow: none !important;
}

.submit-button {
    background: var(--primary-blue) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 18px 40px !important;
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.submit-button:hover {
    background: var(--secondary-blue) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(45, 95, 126, 0.3) !important;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--secondary-blue);
    color: var(--white);
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    height: 170px;
    display: block;
    margin: 0 auto;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4,
.footer-contact h4,
.footer-map h4 {
    font-size: 1.2rem;
    color: var(--white);
}

.footer-links a,
.social-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
}

.footer-links a:hover,
.social-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact i {
    font-size: 1.1rem;
    width: 24px; /* Garante que todos os ícones ocupem a mesma largura */
    text-align: center; /* Centraliza o ícone dentro dessa largura */
}
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 991px) {
    .navbar-brand {
        margin-left: 20px;
    }
    
    .navbar-brand img {
        height: 70px;
    }
    
    .navbar .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-headline {
        font-size: 2rem;
    }
    
    .carousel-control-prev {
        left: -40px;
    }
    
    .carousel-control-next {
        right: -40px;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        margin-left: 0;
    }
    
    .navbar-brand img {
        height: 60px !important;
        max-width: 180px;
    }
    
    .navbar .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .navbar-toggler {
        border: none;
        padding: 5px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-headline {
        font-size: 1.8rem;
    }
    
    .stats-title {
        font-size: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .testimonial-card {
        padding: 40px 20px;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
}

/* ========================================
   Floating Contact Widget
   ======================================== */
.floating-contact-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 20px rgba(45, 95, 126, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.floating-btn:hover {
    background: var(--secondary-blue);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(45, 95, 126, 0.5);
}

.floating-btn.active {
    background: var(--secondary-blue);
}

.contact-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px;
    border-radius: 15px 15px 0 0;
}

.popup-header h5 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.popup-header p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.popup-form {
    padding: 20px;
}

.popup-choices {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--light-gray);
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.choice-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: translateX(5px);
}

.choice-btn i {
    font-size: 1.5rem;
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.9rem;
    padding: 0 0 15px 0;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-back:hover {
    color: var(--primary-blue);
}

.popup-form .form-control {
    padding: 12px 15px !important;
    border: 1px solid var(--medium-gray) !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
}

.popup-form .btn-primary {
    background: var(--primary-blue) !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.popup-form .btn-primary:hover {
    background: var(--secondary-blue) !important;
}

@media (max-width: 768px) {
    .floating-contact-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .contact-popup {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

/* ========================================
   Image Modal & Zoom
   ======================================== */
.portfolio-group-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.portfolio-group-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-cover-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.portfolio-cover-image > img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-group-card:hover .portfolio-cover-image > img:first-child {
    transform: scale(1.1);
}

.portfolio-watermark-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    opacity: 0;
    filter: brightness(0) invert(1);
    object-fit: contain;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.portfolio-group-card:hover .portfolio-watermark-logo {
    opacity: 0.4;
}

.portfolio-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    padding: 20px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 30%;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.portfolio-group-card:hover .portfolio-cover-overlay {
    background: linear-gradient(to top, rgba(45, 95, 126, 0.95) 0%, rgba(45, 95, 126, 0.5) 70%, transparent 100%);
    height: 30%;
}

.portfolio-hover-text {
    flex: 1;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    color: white;
}

.portfolio-group-card:hover .portfolio-hover-text {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-hover-text i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.portfolio-hover-text span {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-cover-text {
    color: white;
    align-self: flex-start;
}

.portfolio-cover-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.portfolio-cover-text p {
    font-size: 0.9rem;
    margin: 0 0 10px 0;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.portfolio-cover-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    opacity: 0.9;
    justify-content: flex-start;
}

.portfolio-cover-info i {
    font-size: 1rem;
}

/* Gallery Modal Styles */
#groupGridModal .modal-dialog {
    max-width: 90vw !important;
}

#groupGridModal .modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--medium-gray);
}

#groupGridModal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

#groupGridModal .modal-body {
    padding: 30px;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.grid-gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.grid-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.grid-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-gallery-item:hover img {
    transform: scale(1.05);
}

.grid-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 95, 126, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.grid-gallery-item:hover .grid-gallery-overlay {
    opacity: 1;
}

.watermark-logo {
    position: absolute;
    bottom: 12px;
    left: 12px;
    max-width: 25%;
    max-height: 20%;
    width: auto;
    height: auto;
    opacity: 0.6;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

@media (max-width: 768px) {
    .grid-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    #groupGridModal .modal-body {
        padding: 20px;
    }
}

/* Gallery Modal Styles */
#galleryModal .modal-dialog {
    max-width: 95vw !important;
}

#galleryModal .modal-content {
    background: rgba(0, 0, 0, 0.95) !important;
}

#galleryModal .modal-header {
    padding: 20px 30px;
}

#galleryModal .modal-title {
    font-size: 1.25rem;
}

#galleryModal .btn-close {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#galleryModal .btn-close:hover {
    opacity: 1;
}

#galleryModal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 30px;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
    left: 20px;
}

.gallery-nav-btn.next {
    right: 20px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 20px 10px;
    max-width: 100%;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--primary-blue);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(45, 95, 126, 0.5);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#galleryModalImage {
    transition: transform 0.3s ease;
    max-width: 100%;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-nav-btn.prev {
        left: 10px;
    }
    
    .gallery-nav-btn.next {
        right: 10px;
    }
    
    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
}

.footer-credit a {
    text-decoration: none !important;
    color: #00C9A7 !important;
}

.footer-credit a strong {
    color: inherit !important;
    font-weight: 600 !important;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
