@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* World-Class Corporate Palette */
    --primary: #0052cc;
    /* Professional Modern Blue */
    --primary-dark: #0747a6;
    --navy-header: #091e42;
    /* Deep Corporate Navy */
    --text-dark: #172b4d;
    --text-light: #6b778c;
    --bg-light: #f4f5f7;
    --white: #ffffff;

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 100px 0;
    --transition-base: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Box Shadows - Modern & Clean */
    --shadow-sm: 0 2px 4px rgba(9, 30, 66, 0.08);
    --shadow-md: 0 4px 8px -2px rgba(9, 30, 66, 0.15), 0 0 1px rgba(9, 30, 66, 0.31);
    --shadow-lg: 0 12px 24px -6px rgba(9, 30, 66, 0.12), 0 0 1px rgba(9, 30, 66, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: linear-gradient(-45deg, #0052cc, #0747a6, #1e3a8a, #0891b2, #0052cc);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: -1;
    pointer-events: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
}

/* Typography Helpers */
.heading-thin {
    font-weight: 300;
}

.heading-bold {
    font-weight: 700;
}

/* ============================================
   PROFESSIONAL SCROLL ANIMATIONS
   ============================================ */

/* Initial state - hidden before animation */
[data-appear] {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: blur(5px);
}

/* Animated state - visible with bounce effect */
[data-appear].animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Slide from left animation with rotation */
[data-appear].slide-left {
    transform: translateX(-100px) rotate(-5deg);
    opacity: 0;
}

[data-appear].slide-left.animate-in {
    transform: translateX(0) rotate(0);
    opacity: 1;
}

/* Slide from right animation with rotation */
[data-appear].slide-right {
    transform: translateX(100px) rotate(5deg);
    opacity: 0;
}

[data-appear].slide-right.animate-in {
    transform: translateX(0) rotate(0);
    opacity: 1;
}

/* Fade in animation with scale */
[data-appear].fade-only {
    transform: scale(0.8);
    filter: blur(10px);
}

[data-appear].fade-only.animate-in {
    transform: scale(1);
    filter: blur(0);
}

/* Scale animation with bounce */
[data-appear].scale-in {
    transform: scale(0.5) rotate(-10deg);
    opacity: 0;
}

[data-appear].scale-in.animate-in {
    transform: scale(1) rotate(0);
    opacity: 1;
}

/* Flip animation for cards */
[data-appear].flip-in {
    transform: perspective(1000px) rotateY(90deg);
    opacity: 0;
}

[data-appear].flip-in.animate-in {
    transform: perspective(1000px) rotateY(0);
    opacity: 1;
}

/* Zoom and rotate for special elements */
[data-appear].zoom-rotate {
    transform: scale(0.3) rotate(180deg);
    opacity: 0;
}

[data-appear].zoom-rotate.animate-in {
    transform: scale(1) rotate(0);
    opacity: 1;
}



/* Global Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Buttons - Standardized & Refined */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(0, 82, 204, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.23);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar {
    background-color: var(--navy-header);
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links a {
    color: inherit;
    text-decoration: none;
    margin-left: 20px;
    transition: var(--transition-base);
}

.top-bar-links a:hover {
    color: var(--white);
}

nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: 85px;
    display: flex;
    align-items: center;
    transition: var(--transition-base);
    border-bottom: 1px solid #ebecf0;
}

nav.sticky {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 84px;
    width: auto;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu a {
    padding: 10px 20px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-base);
    border-radius: 4px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: rgba(0, 82, 204, 0.05);
}

.nav-menu .btn-primary.active {
    background-color: var(--white) !important;
    color: var(--text-dark) !important;
    border: 1px solid #ebecf0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ============================================
   REAL WORLD HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    /* More breathing room */
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    /* Real World Depth: Image + Gradient Overlay */
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%),
        url('../assets/Consolacion.jpg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
}

.hero-image-dec {
    flex: 0 0 460px;
    /* Force fixed width for slider */
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

/* Animated Background Pattern Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Modern Typography & Layout */
.hero-content {
    flex: 1;
    max-width: 650px;
    color: var(--navy-header);
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 82, 204, 0.1);
    border: 1px solid rgba(0, 82, 204, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    color: #4facfe;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    color: var(--navy-header);
    text-shadow: none;
}

.hero h1 span {
    color: #4facfe;
    /* Lighter blue for contrast on dark bg */
    background: -webkit-linear-gradient(45deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    /* Readability on light */
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 300;
    border-left: 3px solid var(--primary);
    padding-left: 20px;
}

/* Glassmorphism Buttons */
.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-btns .btn-primary {
    background: linear-gradient(90deg, #0052cc, #007aff);
    border: none;
    box-shadow: 0 10px 25px -5px rgba(0, 122, 255, 0.4);
}

.hero-btns .btn-primary:active {
    transform: translateY(0);
}

.hero-btns .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
    backdrop-filter: none;
}

.hero-btns .btn-outline-primary:hover {
    background: var(--white);
    color: var(--navy-header);
    border-color: var(--white);
}

/* 3D Floating Branch Slider - Transparent & Full Image */
.branch-slider-wrapper {
    background: transparent;
    padding: 0;
    border-radius: 3px;
    /* Clean, no border or heavy shadow as requested transparent */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 460px;
    height: 520px;
    position: relative;
    transition: transform 0.4s ease;
    overflow: visible;
    /* Removed 3D tilt */
}

.branch-slider-wrapper:hover {
    transform: translateY(-5px);
}

/* Make inner content fill height */
.branch-slider-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 3px;
}

.branch-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.branch-slide-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.branch-image-box {
    width: 100%;
    height: 100%;
    /* Full height */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.branch-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Gradient Overlay for Text Readability */
.branch-info-padding {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 100px 30px 40px 30px;
    /* Top padding for gradient fade */
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1;
    color: white;
    /* Text color white for dark overlay */
}

/* Text Overrides for compatibility with existing JS injection */
.branch-info-padding h3,
.branch-info-padding p,
.branch-info-padding i {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: left !important;
    /* Align left for modern look */
}

/* Slider Arrows */
.branch-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border: none;
    color: var(--primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.branch-arrow:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.prev-branch {
    left: -70px;
}

.next-branch {
    right: -70px;
}

/* Dots positioning update */
.branch-nav-dots {
    position: absolute;
    bottom: 15px !important;
    /* Move closer to bottom */
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
    padding: 0;
    background: transparent;
    /* Remove background */
    left: 0;
    transform: none;
}

.branch-dot {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.branch-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* Removed old Display Card Logic as it conflicts */
.display-card {
    display: none;
}

/* Standard Section */
.section {
    padding: var(--section-padding);
}

.section-bg-light {
    background-color: var(--bg-light);
}

.section-header-porto {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px;
}

.section-header-porto h2 {
    font-size: 42px;
    letter-spacing: -1px;
}

.divider-porto {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 25px auto;
    border-radius: 2px;
}

/* About Modern Layout */
.about-modern-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: flex-start;
}

.lead-text {
    font-size: 19px;
    line-height: 1.8;
    color: var(--navy-header);
    font-weight: 500;
    margin-bottom: 30px;
}

.about-icon-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.icon-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 12px;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.icon-feature-item:hover .feature-icon-box {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-text h4 {
    margin-bottom: 8px;
    font-size: 18px;
}

.feature-text p {
    font-size: 14px;
    margin: 0;
}

.about-side-vision {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.vision-card {
    padding: 35px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.vision-card.dark {
    background: var(--navy-header);
    color: white;
}

.vision-card.primary-card {
    /* renamed to avoid conflict */
    background: var(--primary);
    color: white;
}

.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.vision-icon {
    font-size: 28px;
    opacity: 0.9;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.vision-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: white;
}

.vision-card p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

.pursuit-excellence {
    text-align: center;
    padding: 30px;
    font-style: italic;
    font-weight: 600;
    color: var(--primary);
    border: 2px dashed #ebecf0;
    border-radius: 15px;
}

.about-porto-img {
    background: var(--bg-light);
    padding: 80px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
}

.about-porto-img img {
    width: 100%;
    max-width: 300px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
}

.about-feature-box {
    margin-top: 40px;
    padding-left: 20px;
    border-left: 3px solid #ebecf0;
}

.about-feature-box h4 {
    margin-top: 15px;
}

/* Service Cards */
/* Service Slider */
.services-slider-wrapper {
    position: relative;
    padding: 0 60px;
    /* Space for buttons */
}

.services-slider-container {
    overflow: hidden;
    width: 100%;
}

.services-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.service-porto-item {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
    flex: 0 0 calc((100% - 60px) / 3);
    /* Show 3 items precisely */
    /* Mobile responsive width will be handled in media queries */
}

.service-porto-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-porto-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 30px;
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.slider-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f4f5f7;
    color: #a3adc2;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Footer - Redesigned & Fixed */
footer {
    background-color: var(--navy-header);
    color: #a3adc2;
    padding: 100px 0 0;
}

.footer-top {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    padding-bottom: 80px;
}

.footer-tag {
    position: absolute;
    top: -125px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 18px;
    font-weight: 800;
    font-size: 13px;
    border-radius: 6px 6px 0 0;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 35px;
    font-size: 17px;
    letter-spacing: 1px;
}

.footer-col p {
    font-size: 15px;
}

.footer-bottom {
    background: #05142b;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

/* Appear Animations */
[data-appear] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-appear].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animated Background Diamonds */
.diamonds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.diamond {
    position: absolute;
    bottom: -100px;
    background-color: rgba(255, 255, 255, 0.1);
    /* Diamond shape transformation */
    width: 50px;
    height: 50px;
    transform: rotate(45deg);
    opacity: 0.6;
    animation: rise 15s infinite linear;
    /* changed to linear for smoother rotation */
    box-shadow: 0 0 10px rgba(0, 82, 204, 0.2);
}

/* Specific diamond styling for variation */
.diamond:nth-child(1) {
    left: 10%;
    width: 80px;
    height: 80px;
    animation-duration: 12s;
    animation-delay: 0s;
    background: rgba(0, 82, 204, 0.15);
}

.diamond:nth-child(2) {
    left: 20%;
    width: 20px;
    height: 20px;
    animation-duration: 8s;
    animation-delay: 2s;
    background: rgba(0, 82, 204, 0.25);
}

.diamond:nth-child(3) {
    left: 25%;
    width: 50px;
    height: 50px;
    animation-duration: 10s;
    animation-delay: 4s;
    background: rgba(0, 82, 204, 0.1);
}

.diamond:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-duration: 14s;
    animation-delay: 1s;
    background: rgba(0, 82, 204, 0.2);
}

.diamond:nth-child(5) {
    left: 50%;
    width: 30px;
    height: 30px;
    animation-duration: 11s;
    animation-delay: 0s;
    background: rgba(0, 82, 204, 0.3);
}

.diamond:nth-child(6) {
    left: 70%;
    width: 90px;
    height: 90px;
    animation-duration: 15s;
    animation-delay: 3s;
    background: rgba(0, 82, 204, 0.1);
}

.diamond:nth-child(7) {
    left: 80%;
    width: 45px;
    height: 45px;
    animation-duration: 9s;
    animation-delay: 2s;
    background: rgba(0, 82, 204, 0.2);
}

.diamond:nth-child(8) {
    left: 90%;
    width: 25px;
    height: 25px;
    animation-duration: 13s;
    animation-delay: 1s;
    background: rgba(0, 82, 204, 0.15);
}

.diamond:nth-child(9) {
    left: 15%;
    width: 35px;
    height: 35px;
    animation-duration: 16s;
    animation-delay: 4s;
    background: rgba(0, 82, 204, 0.25);
}

.diamond:nth-child(10) {
    left: 60%;
    width: 75px;
    height: 75px;
    animation-duration: 18s;
    animation-delay: 2s;
    background: rgba(0, 82, 204, 0.1);
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0) rotate(45deg);
    }

    50% {
        transform: translateX(50px) rotate(225deg);
    }

    100% {
        bottom: 120%;
        transform: translateX(-50px) rotate(405deg);
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 32px;
        white-space: normal;
    }

    .hero-image-dec {
        display: block;
        width: 100%;
        max-width: 460px;
        margin: 50px auto 0;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .hero p {
        border-left: none;
        padding-left: 0;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-modern-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-porto-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .services-porto-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

/* Modern About Section Styling */
.about-legacy-card {
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--primary);
    transition: var(--transition-base);
}

.about-legacy-card:hover {
    transform: translateX(10px);
}

.modern-stat-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #ebecf0;
}

.mv-card {
    background: white;
    padding: 50px;
    border-radius: 24px;
    border: 1px solid #f0f1f4;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: all 0.5s ease;
}

.mv-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.15), 0 18px 36px -18px rgba(0, 0, 0, 0.2);
}

.mv-card:hover::before {
    height: 100%;
}

.glass-icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(0, 82, 204, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 28px;
    transition: all 0.5s ease;
}

.mv-card:hover .glass-icon-circle {
    background: var(--primary);
    color: white;
    transform: rotateY(360deg);
}

.quote-decor {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    line-height: 1.4;
    color: var(--navy-header);
    position: relative;
    display: inline-block;
}

.quote-decor::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
}

@media (max-width: 960px) {
    .mv-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {

    .services-porto-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }
}

/* Products Showcase - Unique 3D Layout */
.products-showcase {
    padding: var(--section-padding);
    background: #ffffff;
    overflow: hidden;
}

.product-show-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.product-show-card {
    position: relative;
    height: 480px;
    /* Standardizing height */
    background: var(--bg-light);
    border-radius: 0;
    /* Sharp corners for corporate look */
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid #ebecf0;
}

.product-show-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.product-visual {
    height: 300px;
    /* FIXED height for perfect top-alignment of text below */
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #e1e4e8;
    flex-shrink: 0;
}

.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-show-card:hover .product-visual img {
    transform: scale(1.1);
}

.product-content-reveal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    /* Standardized height for top-alignment */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 35px 30px;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-top: 1px solid #ebecf0;
}

.product-show-card:hover .product-content-reveal {
    height: 85%;
    background: var(--navy-header);
    color: white;
}

.product-content-reveal h3 {
    margin-bottom: 10px;
    font-size: 22px;
    transition: color 0.3s;
}

.product-show-card:hover .product-content-reveal h3 {
    color: var(--primary);
}

.product-features-list {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
    list-style: none;
    font-size: 14px;
    margin-top: 20px;
    line-height: 2;
}

.product-show-card:hover .product-features-list {
    opacity: 1;
    transform: translateY(0);
}

.product-features-list li i {
    color: var(--primary);
    margin-right: 10px;
}

/* Clients Network */
.clients-network {
    padding: var(--section-padding);
    background: #fcfdfe;
    border-top: 1px solid #ebecf0;
}

/* Client Tabs */
.client-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 50px 0 60px;
}

.client-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: white;
    border: 2px solid #ebecf0;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.client-tab-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.client-tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary);
    transition: height 0.4s ease;
    z-index: 0;
}

.client-tab-btn span {
    position: relative;
    z-index: 1;
}

.client-tab-btn:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 82, 204, 0.15);
}

.client-tab-btn:hover i {
    transform: scale(1.1);
}

.client-tab-btn.active {
    background: var(--navy-header);
    border-color: var(--primary);
    color: white;
}

.client-tab-btn.active::before {
    height: 4px;
}

/* Client Content */
.client-content {
    display: none;
    opacity: 0;
    animation: fadeOut 0.3s ease;
}

.client-content.active {
    display: block;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Client Gallery */
.client-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.client-image-card {
    position: relative;
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #ebecf0;
}

.client-image-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.client-image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.client-image-card:hover img {
    transform: scale(1.05);
}

.client-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 30, 60, 0.95), transparent);
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.client-image-card:hover .client-overlay {
    transform: translateY(0);
}

.client-overlay h4 {
    color: white;
    font-size: 20px;
    margin: 0;
    font-weight: 700;
}

/* Client Placeholder */
.client-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 40px;
    background: white;
    border-radius: 0;
    border: 2px dashed #d1d5db;
}

.client-placeholder i {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: 30px;
    opacity: 0.3;
}

.client-placeholder h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.client-placeholder p {
    font-size: 16px;
    color: var(--text-light);
}


@media (max-width: 1100px) {
    .product-show-grid {
        grid-template-columns: 1fr 1fr;
    }

    .clients-grid-large {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .product-show-grid,
    .clients-grid-large {
        grid-template-columns: 1fr;
    }
}