/* ====== VARIABLES ====== */
:root {
    /* Earthy Opaque Blacks */
    --bg-main: #0c0b0a;
    --bg-surface: #12100e;
    --bg-card: rgba(26, 24, 22, 0.4);

    /* Premium Accents */
    --accent-gold: #cba358;
    --accent-copper: #b87333;

    /* Text */
    --text-primary: #f2efe9;
    --text-muted: #8a8276;
    --text-dark: #0c0b0a;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ====== RESET & BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.asymmetric-layout {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    /* Key for the side-nav layout */
}

h1,
h2,
h3,
h4,
.badge-elite,
.bg-typography {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.highlight {
    color: var(--accent-gold);
}

/* ====== PRELOADER ====== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050504;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.preloader-logo-giant {
    width: 350px;
    max-width: 80vw;
    filter: drop-shadow(0 0 40px rgba(203, 163, 88, 0.4));
    animation: pulse 2s infinite alternate;
}

.preloader-text {
    font-size: 1.2rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    animation: fadeInOut 2s infinite;
}

.loader-bar-container {
    width: 250px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-gold);
    animation: loadProgress 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
        filter: drop-shadow(0 0 20px rgba(203, 163, 88, 0.2));
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 0 50px rgba(203, 163, 88, 0.6));
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* ====== SIDE NAVIGATION ====== */
.side-nav {
    width: 100px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-surface);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    width: 50px;
    filter: drop-shadow(0 0 10px rgba(203, 163, 88, 0.3));
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.nav-links a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    transition: var(--transition);
}

.nav-label {
    position: absolute;
    left: 50px;
    opacity: 0;
    visibility: hidden;
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: translateX(-10px);
    transition: var(--transition);
    border: 1px solid rgba(203, 163, 88, 0.2);
    pointer-events: none;
}

.nav-links a:hover .nav-dot,
.nav-links a.active .nav-dot {
    background-color: var(--accent-gold);
    transform: scale(1.5);
    box-shadow: 0 0 10px var(--accent-gold);
}

.nav-links a:hover .nav-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-lang {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Virtual Agent Top-Left */
.virtual-agent {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.agent-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    /* Squared corners suit the folder icon perfectly */
    background: var(--bg-card);
    border: 1px solid var(--accent-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    color: var(--accent-gold);
    transition: var(--transition);
    z-index: 10;
}

.agent-icon:hover {
    background: var(--accent-gold);
    color: var(--bg-main);
    transform: scale(1.1);
}

.agent-png {
    width: 70%;
    height: 70%;
    object-fit: contain;
    transition: var(--transition);
}

.agent-icon:hover .agent-png {
    filter: brightness(0) invert(1);
    /* Turns it dark/light on hover depending on contrast */
}

.agent-ping {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-gold);
    opacity: 0.5;
    z-index: -1;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.agent-tooltip {
    position: absolute;
    top: -10px;
    left: 60px;
    width: 280px;
    background: var(--bg-main);
    border: 1px solid rgba(203, 163, 88, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: var(--transition);
    z-index: 100;
}

.agent-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.agent-tooltip::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent rgba(203, 163, 88, 0.5) transparent transparent;
}

.agent-select {
    width: 100%;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid rgba(203, 163, 88, 0.3);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    outline: none;
    cursor: pointer;
    text-overflow: ellipsis;
}

.agent-select option {
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 8px;
    font-size: 0.85rem;
    white-space: normal;
}

.agent-select:focus {
    border-color: var(--accent-gold);
}

.agent-tooltip p {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.agent-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    width: 100%;
    justify-content: center;
}

.agent-btn:hover {
    background: #1ebe5d;
}

.nav-lang {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    z-index: 2000;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    min-width: 44px;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.lang-flag {
    width: 24px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) grayscale(0.5);
    transition: var(--transition);
    transform-origin: center bottom;
}

.lang-btn.active {
    color: var(--accent-gold);
}

.lang-btn.active .lang-flag {
    filter: drop-shadow(0 2px 8px rgba(203, 163, 88, 0.4)) grayscale(0);
    animation: waveFlag 3s infinite ease-in-out;
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
}

.lang-btn:hover:not(.active) .lang-flag {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)) grayscale(0.2);
    transform: scale(1.1);
}

@keyframes waveFlag {

    0%,
    100% {
        transform: rotate(-3deg) scale(1.1);
    }

    50% {
        transform: rotate(3deg) scale(1.1);
    }
}

.lang-divider {
    color: rgba(255, 255, 255, 0.1);
    font-size: 0.6rem;
}

/* ====== LAYOUT STRUCTURE ====== */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100vh;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.side-nav-logo {
    width: 60px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(203, 163, 88, 0.3));
}

.side-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.side-nav-link {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transition: var(--transition);
    position: relative;
}

.side-nav-link:hover,
.side-nav-link.active {
    color: var(--accent-gold);
}

.side-nav-link.active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.side-nav-social {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.side-nav-social a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.side-nav-social a:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

/* ====== MAIN CONTENT AREA ====== */
.main-content {
    margin-left: 100px;
    width: calc(100% - 100px);
}

.panel {
    min-height: 100vh;
    padding: 4rem 10%;
    position: relative;
    display: flex;
    align-items: center;
}

/* ====== BACKGROUND AMBIENCE ====== */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
    width: 50vw;
    height: 50vw;
}

.glow-top {
    background: radial-gradient(circle, var(--accent-gold), transparent);
    top: -20vh;
    right: -10vw;
}

.glow-bottom {
    background: radial-gradient(circle, var(--accent-copper), transparent);
    bottom: -20vh;
    left: 10vw;
}

/* ====== SECTION 1: HERO (ASYMMETRIC) ====== */
.hero-panel {
    justify-content: space-between;
    gap: 4rem;
}

.hero-text-side {
    flex: 1;
    max-width: 600px;
}

.badge-elite {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    border-left: 3px solid var(--accent-gold);
    background: linear-gradient(90deg, rgba(203, 163, 88, 0.1) 0%, transparent 100%);
    color: var(--accent-gold);
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

.staggered-title {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.staggered-title .line-1 {
    opacity: 0.9;
}

.staggered-title .line-2 {
    margin-left: 2rem;
}

.hero-desc {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 450px;
    margin-bottom: 3rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-arrow:hover {
    background: var(--accent-gold);
    color: var(--text-dark);
}

.hero-brand-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.giant-logo-container {
    position: relative;
    width: 40vw;
    max-width: 500px;
    height: 40vw;
    max-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-giant-logo {
    width: 60%;
    filter: drop-shadow(0 0 30px rgba(203, 163, 88, 0.2));
    z-index: 2;
}

.orbit-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(203, 163, 88, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 80%;
    height: 80%;
    animation: spin 20s linear infinite;
    border-style: dashed;
}

.orbit-2 {
    width: 100%;
    height: 100%;
    border-top: 2px solid var(--accent-gold);
    animation: spin 30s linear infinite reverse;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.scroll-down-vertical {
    position: absolute;
    bottom: -5rem;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-down-vertical span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.line-drop {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
    animation: dropLine 2s infinite;
}

@keyframes dropLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ====== SECTION 2: ABOUT (OVERLAPPING CARDS) ====== */
.about-panel {
    background-color: var(--bg-surface);
    overflow: hidden;
}

.bg-typography {
    position: absolute;
    top: 10%;
    left: -5%;
    font-size: 30vw;
    color: rgba(255, 255, 255, 0.02);
    line-height: 0.8;
    user-select: none;
    z-index: 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
    width: 100%;
}

.about-image-card {
    flex: 1;
    height: 600px;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjYmQ5ZTYwIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+') var(--bg-main);
    border: 1px solid rgba(203, 163, 88, 0.1);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.glass-overlay {
    background: rgba(12, 11, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-left: 3px solid var(--accent-gold);
    max-width: 300px;
}

.floating-badge {
    width: 60px;
    margin-bottom: 1rem;
}

.glass-overlay h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.glass-overlay p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-content-card {
    flex: 1;
    background: var(--bg-main);
    padding: 5rem;
    margin-left: -100px;
    /* The overlap */
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
}

/* ====== SECTION 3: SERVICES (MASONRY GRID) ====== */
.services-panel {
    flex-direction: column;
    align-items: flex-start;
}

.services-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    width: 100%;
}

.header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(203, 163, 88, 0.3), transparent);
}

.services-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    width: 100%;
}

.srv-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.srv-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 11, 10, 0.4);
    transition: var(--transition);
    z-index: 0;
}

.srv-item:hover::before {
    background: rgba(12, 11, 10, 0);
    /* Reveals more of the image */
}

.srv-item:hover {
    border-color: rgba(203, 163, 88, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.srv-tall {
    grid-row: span 2;
}

.srv-wide {
    grid-column: span 2;
}

.srv-num {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
    z-index: 1;
    transition: var(--transition);
}

.srv-item:hover .srv-num {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.srv-item h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.srv-item p {
    font-size: 0.9rem;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.srv-item:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* ====== SECTION: MOVIMIENTO (GALLERY) ====== */
.movement-panel {
    flex-direction: column;
    align-items: flex-start;
}

.movement-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    width: 100%;
}

.movement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.mov-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    /* Elegant Double-Border Effect */
    border: 1px solid var(--accent-gold);
    background-color: var(--bg-surface);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    padding: 10px;
    /* Outer frame */
}

.mov-item::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(203, 163, 88, 0.3);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition);
}

.mov-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: var(--transition);
    display: block;
}

.mov-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(203, 163, 88, 0.2);
    border-color: #fff;
}

.mov-item:hover::after {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(0.98);
}

.mov-item:hover img {
    filter: brightness(1) contrast(1);
    transform: scale(1.05);
}

/* ====== SECTION 4: FOOTER / CTA ====== */
.footer-panel {
    flex-direction: column;
    justify-content: center;
    background-color: #050504;
    padding-bottom: 2rem;
    position: relative;
}

.contact-box {
    background: var(--bg-main);
    background-image: radial-gradient(circle at top right, rgba(203, 163, 88, 0.1), transparent 50%);
    border: 1px solid rgba(203, 163, 88, 0.2);
    padding: 4rem;
    text-align: center;
    width: 100%;
    margin-bottom: 5rem;
}

.contact-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.9rem;
}

.contact-pill i {
    color: var(--accent-gold);
}

.contact-pill:hover {
    border-color: var(--accent-gold);
}

.minimal-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo-small {
    height: 30px;
    filter: brightness(0.5);
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}


/* ====== FLOATING SOCIAL BUTTONS ====== */
.floating-socials {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.float-btn {
    width: 60px;
    height: 60px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    animation: floatIcon 3s ease-in-out infinite;
}

.floating-socials .float-btn:nth-child(2) {
    animation-delay: 1.5s;
}

.float-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: var(--transition);
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 25px rgba(203, 163, 88, 0.3);
}

/* 200% Extra Brightness for WhatsApp (Total 300% or brightness(3)) */
.float-wa img,
.float-wa-icon {
    filter: brightness(3);
}

.float-wa:hover {
    background: #25D366;
    /* Subtle brand hint on hover if desired, or keep dark */
    border-color: #25D366;
}

.float-ig:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
}

/* Custom Image Icons in Footer & Pills */
.footer-custom-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.5;
    transition: var(--transition);
}

.footer-right a:hover .footer-custom-icon {
    opacity: 1;
    filter: brightness(0) sepia(1) hue-rotate(10deg) saturate(3) brightness(1.2);
    /* Gold tint on hover */
}

/* Make WhatsApp logo glow natively when hovered in footer */
.footer-right a:hover img[src*="whatsapp"] {
    filter: brightness(3);
}

.pill-custom-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ====== SERVICE MODAL ====== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 4, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    /* Changed from flex to none */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-window {
    width: 90%;
    max-width: 1000px;
    background: var(--bg-main);
    border: 1px solid rgba(203, 163, 88, 0.3);
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-window {
    transform: scale(1) translateY(0);
}

.modal-btn-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-btn-close:hover {
    background: var(--accent-gold);
    color: var(--bg-main);
}

.modal-img-wrapper {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.modal-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.modal-img-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 50%, var(--bg-main) 100%);
}

.modal-content-area {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.modal-line {
    width: 50px;
    height: 2px;
    background: var(--accent-gold);
    margin-bottom: 2rem;
}

.modal-desc {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.btn-wa-modal {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: #25D366;
    color: white !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-wa-modal img {
    width: 24px;
    filter: brightness(0) invert(1);
}

.btn-wa-modal:hover {
    background: #1ebe5d;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Modal Responsive */
@media (max-width: 900px) {
    .modal-window {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-img-wrapper {
        min-height: 300px;
        flex: none;
    }

    .modal-img-gradient {
        background: linear-gradient(0deg, var(--bg-main) 0%, transparent 50%);
    }

    .modal-content-area {
        padding: 2rem;
    }

    .modal-title {
        font-size: 1.8rem;
    }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1200px) {
    .services-track {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {

    /* Transform to bottom nav for mobile/tablets */
    body.asymmetric-layout {
        flex-direction: column;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        margin-bottom: 70px;
        /* Space for bottom nav */
    }

    .side-nav {
        width: 100%;
        height: 70px;
        top: auto;
        bottom: 0;
        flex-direction: row;
        padding: 0 1.5rem;
        border-right: none;
        border-top: 1px solid rgba(203, 163, 88, 0.2);
        z-index: 2000;
    }

    .nav-brand {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .virtual-agent {
        margin-top: 0;
        position: relative;
        bottom: auto;
        left: auto;
    }

    .nav-logo {
        height: 40px;
        width: auto;
    }

    .agent-tooltip {
        top: auto;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        margin-left: 0;
        width: 90%;
        max-width: 350px;
        position: fixed;
        /* Use fixed positioning to center properly on mobile */
        z-index: 3000;
    }

    .agent-tooltip.show {
        transform: translateX(-50%) translateY(0);
    }

    .agent-tooltip::before {
        top: auto;
        bottom: -10px;
        left: 50%;
        border-width: 10px 10px 0 10px;
        border-color: rgba(203, 163, 88, 0.5) transparent transparent transparent;
        transform: translateX(-50%);
        pointer-events: none;
    }

    .nav-links {
        flex-direction: row;
        gap: 2rem;
        width: 100%;
        justify-content: space-around;
        align-items: center;
    }

    .nav-lang {
        top: 1rem;
        right: 1rem;
        flex-direction: row;
        position: fixed;
    }

    .nav-dot {
        width: 8px;
        height: 8px;
    }

    .nav-label {
        display: none;
    }

    .panel {
        padding: 3rem 5%;
    }

    .hero-panel {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-text-side {
        order: 2;
    }

    .hero-desc {
        border-left: none;
        padding-left: 0;
        margin: 0 auto 3rem;
    }

    .hero-brand-side {
        order: 1;
        width: 100%;
    }

    .scroll-down-vertical {
        display: none;
    }

    .about-container {
        flex-direction: column;
    }

    .about-content-card {
        margin-left: 0;
        margin-top: -50px;
        padding: 3rem;
    }

    .services-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .movement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .floating-socials {
        bottom: 90px;
        /* Above the mobile nav bar */
        right: 1.5rem;
    }

    .float-btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 600px) {
    .services-track {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px; /* Reduced height as only title is shown */
        gap: 12px;
    }

    .movement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .srv-item {
        padding: 0.8rem;
        justify-content: center; /* Center title vertically */
        text-align: center;
    }

    .srv-item h3 {
        font-size: 0.8rem;
        margin-bottom: 0;
        line-height: 1.1;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--accent-gold);
        z-index: 1;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .srv-item p {
        display: none; /* Hide description on mobile cards */
    }

    .srv-num {
        top: 0.6rem;
        right: 0.6rem;
        font-size: 1rem;
        opacity: 0.2;
    }

    .srv-tall {
        grid-row: span 1;
        min-height: 180px;
    }

    .srv-wide {
        grid-column: span 1;
    }

    .nav-lang {
        top: 0.5rem;
        right: 0.5rem;
        scale: 0.85; /* Smaller flags on mobile to avoid overlap */
    }

    .stats-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Ensure tooltip doesn't bleed off small screens */
    .agent-tooltip {
        width: calc(100vw - 3rem);
        max-width: 320px;
    }
}

.movement-subtitle-container {
    margin-top: 3rem;
    text-align: center;
    width: 100%;
}

.movement-subtitle {
    font-size: 1.2rem;
    color: var(--accent-gold);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Animations Trigger */
[data-anim] {
    opacity: 0;
    transition: var(--transition);
}

[data-anim="fade-up"] {
    transform: translateY(30px);
}

[data-anim="fade-right"] {
    transform: translateX(-30px);
}

[data-anim="fade-left"] {
    transform: translateX(30px);
}

[data-anim="zoom-in"] {
    transform: scale(0.95);
}

.in-view {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}