/* ==========================================================================
   settalabs — Design System & Custom Stylesheet
   Theme: Warm Minimalist Light (inspired by Weather App & Wove)
   ========================================================================== */

/* Variables & Token definitions */
:root {
    --bg-primary: #F4F1EB;
    --text-primary: #1A1A1A;
    --text-secondary: #5A5752;
    --border-color: #D9D5CD;
    --border-light: #E5E2DC;
    --accent: #8A857C;
    --accent-hover: #1A1A1A;
    --glow-color: rgba(138, 133, 124, 0.08);
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
    --grid-line-width: 1px;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Custom Selection */
::selection {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Custom Cursor Glow */
.custom-cursor {
    width: 20px;
    height: 20px;
    background-color: var(--text-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, opacity 0.5s ease;
}

@media (pointer: coarse) {
    .custom-cursor {
        display: none;
    }
}

/* Grid lines background (Inspired by blueprint/weather app grids) */
.grid-lines-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.grid-line {
    position: absolute;
    background-color: var(--border-light);
}

.line-v {
    width: var(--grid-line-width);
    height: 100%;
    top: 0;
    transform: scaleY(0);
    transform-origin: top;
}

.line-v:nth-child(1) { left: 20%; }
.line-v:nth-child(2) { left: 80%; }

.line-h {
    height: var(--grid-line-width);
    width: 100%;
    left: 0;
    bottom: 0;
    transform: scaleX(0);
    transform-origin: left;
}

/* Typography styles */
h1, h2, h3, h4 {
    font-weight: 300;
    letter-spacing: -0.02em;
}

/* Header */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(244, 241, 235, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, -webkit-backdrop-filter 0.5s ease, border-color 0.5s ease, padding 0.4s ease;
}

.header.scrolled {
    background: rgba(244, 241, 235, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border-light);
    padding: 1.5rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: var(--transition-fast);
    opacity: 0;
    transform: translateY(-20px);
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: var(--transition-fast);
    opacity: 0;
    transform: translateY(-20px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 10% 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

/* Two-column layout: text left, terminal right */
.hero-layout {
    display: flex;
    align-items: center;
    gap: 6rem;
    width: 100%;
    z-index: 10;
}

.hero-content {
    flex: 1;
    min-width: 0;
    z-index: 10;
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 4.2rem);
    line-height: 1.15;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.hero-desc {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 520px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* ─── Stacked Terminal Container ─────────────────────────────────────── */
.hero-terminal-container {
    position: relative;
    flex: 0 0 460px;
    height: 370px;
    z-index: 10;
}

.hero-terminal {
    width: 410px;
    height: 330px;
    background: #18181A;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow:
        0 30px 60px rgba(0,0,0,0.22),
        0 2px 0 rgba(255,255,255,0.04) inset;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.78rem;
    overflow: hidden;
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, z-index 0.5s ease;
}

/* Background terminal layout */
.hero-terminal.terminal-bg {
    top: 0;
    left: 45px;
    opacity: 0.35;
    z-index: 8;
    background: #111112;
    transform: scale(0.96);
    filter: blur(0.5px);
}

/* Foreground terminal layout */
.hero-terminal.terminal-fg {
    top: 35px;
    left: 0;
    z-index: 9;
}

/* Hover effects for depth */
.hero-terminal-container:hover .terminal-bg {
    transform: translate(25px, -15px) scale(0.98);
    opacity: 0.55;
    filter: blur(0px);
}

.hero-terminal-container:hover .terminal-fg {
    transform: translate(-10px, 10px);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.terminal-dot:nth-child(1) { background: #FF5F57; }
.terminal-dot:nth-child(2) { background: #FFBD2E; }
.terminal-dot:nth-child(3) { background: #28CA41; }

.terminal-title {
    margin-left: auto;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.05em;
}

.terminal-body {
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.terminal-line {
    color: rgba(255,255,255,0.55);
    line-height: 1.45;
    white-space: nowrap;
}

/* Kali Linux Colors & Prompt styles */
.t-kali { color: #81A1C1; }
.t-user { color: #50fa7b; font-weight: 500; }
.t-path { color: #BD93F9; }
.t-white { color: #E5E9F0; }
.t-dim { color: rgba(255,255,255,0.2); }
.t-cmd { color: #88C0D0; }
.t-flag { color: #A3BE8C; }

.t-output {
    padding-left: 0.8rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
}

.t-ok { color: #A3BE8C; }

.terminal-cursor-line {
    color: rgba(255,255,255,0.4);
    margin-top: 0.2rem;
}

.terminal-cursor {
    display: inline-block;
    color: #81A1C1;
    animation: blink 1.1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive: stack on tablet */
@media (max-width: 1024px) {
    .hero-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 3.5rem;
    }
    .hero-terminal-container {
        flex: none;
        width: 100%;
        max-width: 460px;
        height: 370px;
        margin-top: 1rem;
    }
    .hero-terminal {
        width: 100%;
        max-width: 410px;
        height: 320px;
    }
    .hero-terminal.terminal-bg {
        left: 35px;
    }
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Sections Common styling */
section {
    padding: 10rem 10% 8rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.section-header {
    margin-bottom: 5rem;
    max-width: 600px;
}

.section-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    display: block;
    margin-bottom: 1.5rem;
}

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

.horizontal-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    margin-top: 1rem;
    transform: scaleX(0);
    transform-origin: left;
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem;
}

.solution-card {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 3rem;
    position: relative;
    border-radius: 12px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.solution-card:hover {
    border-color: var(--text-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--glow-color);
}

.card-num {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 0.9rem;
    color: var(--accent);
    font-family: var(--font-serif);
    font-style: italic;
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 2.5rem;
    transition: var(--transition-smooth);
}

.solution-card:hover .card-icon {
    color: var(--text-primary);
    transform: scale(1.1);
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
}

.card-list li {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 50%;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-top: 2.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: var(--transition-fast);
}

.card-cta .arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card:hover .card-cta {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.solution-card:hover .card-cta .arrow {
    transform: translateX(5px);
}

/* About Section */
.about {
    background-color: #ECE8E0; /* Tom ligeiramente mais quente para a seção sobre */
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.about-text {
    max-width: 650px;
}

.about-text p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-text .lead-text {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.stat-item {
    border-left: 2px solid var(--accent);
    padding-left: 2rem;
}

.stat-val {
    display: block;
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-lbl {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--bg-primary);
    padding: 8rem 10% 10rem;
    border-bottom: 1px solid var(--border-color);
}

.testimonials-container {
    width: 100%;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 5rem;
    margin-top: 5rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-left-color: var(--text-primary);
}

.testimonial-content {
    position: relative;
    margin-bottom: 2rem;
}

.quote-icon {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1;
    color: var(--border-color);
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    opacity: 0.3;
    pointer-events: none;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.author-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Responsive Testimonials */
@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

/* Team Section */
.team-section {
    background-color: var(--bg-primary);
    padding: 8rem 10%;
}

.team-container {
    margin-top: 2rem;
}

.team-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.team-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.8rem;
    background-color: var(--border-light);
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
    transition: var(--transition-smooth);
}

.team-card:hover .team-image {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
}

.member-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.member-role {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
    display: block;
}

.member-bio {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.member-socials {
    display: flex;
    gap: 1.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Footer (Hello Monday Style) */
.footer {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 8rem 10% 4rem;
    position: relative;
    overflow: hidden;
}

.footer-bg-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: start;
    margin-bottom: 5rem;
}

.footer-form-col {
    display: flex;
    flex-direction: column;
}

.footer-form-title {
    font-size: 2rem;
    font-weight: 500;
    color: var(--bg-primary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.footer-form-subtitle {
    font-size: 0.95rem;
    font-weight: 300;
    color: #9C9993;
    line-height: 1.5;
    margin-bottom: 3rem;
}

.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 0;
    color: var(--bg-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 300;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--bg-primary);
}

.form-textarea {
    min-height: 80px;
    resize: none;
}

.form-label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    font-size: 0.95rem;
    font-weight: 300;
    color: #9C9993;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating labels */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -1.2rem;
    font-size: 0.75rem;
    color: var(--accent);
}

.btn-submit {
    align-self: flex-start;
    background: transparent;
    color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--bg-primary);
}

/* Direct Channels Column */
.footer-channels-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.channel-block {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1.5rem;
}

.channel-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 500;
}

.channel-link {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--bg-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.channel-link:hover {
    opacity: 0.8;
}

/* Active recruitment block */
.recruit-active {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.recruit-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--bg-primary);
    margin-top: 0.2rem;
}

.recruit-text {
    font-size: 0.9rem;
    font-weight: 300;
    color: #9C9993;
    line-height: 1.5;
}

.recruit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bg-primary);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: var(--transition-fast);
}

.recruit-link .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.recruit-link:hover .arrow {
    transform: translateX(4px);
}

.footer-divider-line {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 5rem 0 4rem;
}

.footer-offices-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.offices-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 500;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.office-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.office-item:hover {
    opacity: 0.75;
}

.office-item:hover .office-city {
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.4);
    text-underline-offset: 3px;
}

.office-city {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--bg-primary);
    margin-bottom: 0.5rem;
}

.office-address,
.office-phone {
    font-size: 0.85rem;
    color: #9C9993;
    line-height: 1.5;
    font-weight: 300;
}

.footer-sub-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 6rem;
    padding-top: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copyright-text {
    font-size: 0.85rem;
    color: #9C9993;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--bg-primary);
    letter-spacing: -0.03em;
}

.footer-logo span {
    color: var(--accent);
}

.footer-legal-links .legal-link {
    font-size: 0.85rem;
    color: #9C9993;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal-links .legal-link:hover {
    color: var(--bg-primary);
}

/* Back to Top Ondulado */
.back-to-top-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.back-to-top-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
    width: 220px;
    height: 55px;
}

.wavy-tab {
    width: 220px;
    height: 55px;
}

.back-to-top-text {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(15px);
    white-space: nowrap;
}

/* Animations Scroll Reveal Utility (Managed by Anime.js) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.footer-cta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    width: 100%;
}

.footer-mascot {
    position: relative;
    width: 120px;
    height: 120px;
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.footer-mascot:hover {
    color: #E2DEC3; /* Mascot changes color slightly on hover */
    transform: scale(1.08) rotate(3deg);
}

.mascot-body {
    width: 100%;
    height: 100%;
}

.mascot-gif-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
}

/* Eyes overlaying the SVG for custom interactive movement */
.mascot-eye-left,
.mascot-eye-right {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--text-primary);
    border-radius: 50%;
    top: 50px;
    transition: transform 0.1s ease;
}

.mascot-eye-left {
    left: 45px;
}

.mascot-eye-right {
    left: 69px;
}

/* Antena pulse animation (cyber/security feeling) */
.mascot-antenna-glow {
    fill: var(--bg-primary);
    animation: antennaPulse 1.5s infinite alternate;
}

@keyframes antennaPulse {
    0% {
        r: 3px;
        fill: var(--bg-primary);
        filter: drop-shadow(0 0 2px var(--bg-primary));
    }
    100% {
        r: 5px;
        fill: #E2DEC3;
        filter: drop-shadow(0 0 8px #E2DEC3);
    }
}

.mascot-smile {
    stroke-dasharray: 40;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.3s ease;
}

.footer-mascot:hover .mascot-smile {
    animation: smileWiggle 0.5s ease-in-out;
}

@keyframes smileWiggle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px) scaleY(1.1); }
}
/* Responsive adjustments */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .offices-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2.5rem;
    }
}

/* No-scroll when mobile menu is active */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 15px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    z-index: 110;
    position: relative;
    border-radius: 0;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--text-primary);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

/* Active hamburger state -> turns into 'X' */
.menu-toggle.active .hamburger-line:first-child {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.active .hamburger-line:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem 5%;
    }
    
    .menu-toggle {
        display: flex;
    }

    body:not(.careers-page-body) .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(244, 241, 235, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: right 0.55s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 95;
        padding: 2rem;
    }

    body:not(.careers-page-body) .nav.active {
        right: 0;
    }

    body:not(.careers-page-body) .nav-link {
        font-size: 1.6rem;
        font-weight: 400;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--text-primary);
        opacity: 0;
        transform: translateY(20px);
        padding: 0.5rem 2rem;
    }

    .careers-page-body .nav {
        gap: 1.5rem;
    }
    
    .hero {
        padding: 7rem 5% 4rem;
    }

    .hero-terminal-container {
        display: none !important;
    }
    
    section {
        padding: 6rem 5% 5rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .solution-card {
        padding: 2rem;
    }
    
    .footer {
        padding: 6rem 5% 3rem;
    }
    
    .footer-cta-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .form-row-half {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
    
    .offices-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-sub-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Careers Page Specific Styles (Carreiras e Estágio)
   ========================================================================== */

.careers-page-body {
    background-color: var(--bg-primary);
}

.careers-main {
    position: relative;
    padding-top: 8rem;
}

.careers-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 6rem 10% 4rem;
    border-bottom: 1px solid var(--border-color);
}

/* Job Alerts Block (Greenhouse-like signup) */
.job-alerts-section {
    padding: 4rem 10%;
    border-bottom: 1px solid var(--border-color);
}

.alerts-container {
    background-color: #ECE8E0;
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    border: 1px solid var(--border-color);
}

.alerts-text {
    max-width: 500px;
}

.alerts-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.alerts-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.alerts-form {
    display: flex;
    gap: 1rem;
    flex-grow: 1;
    max-width: 600px;
    width: 100%;
}

.alerts-input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background-color: var(--bg-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

.alerts-input:focus {
    border-color: var(--text-primary);
}

.alerts-btn {
    padding: 1rem 2rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.alerts-btn:hover {
    background-color: transparent;
    color: var(--text-primary);
}

/* Openings list */
.openings-section {
    padding: 8rem 10% 6rem;
}

.openings-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.job-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    transition: var(--transition-smooth);
    background-color: transparent;
}

.job-card:hover {
    border-color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px var(--glow-color);
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.job-dept {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 500;
}

.job-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.job-details {
    flex-grow: 1;
    max-width: 650px;
}

.job-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.job-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

.job-apply-link {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--text-primary);
    border-radius: 30px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: var(--transition-smooth);
    white-space: nowrap;
    cursor: pointer;
}

.job-apply-link:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Modal form style */
.modal-container {
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 26, 0);
    backdrop-filter: blur(0px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.modal-container.active {
    display: flex;
    pointer-events: all;
}

.modal-content {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4rem 3rem;
    max-width: 550px;
    width: 90%;
    position: relative;
    transform: scale(0.85);
    opacity: 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    border: none;
    background: transparent;
    font-size: 2.2rem;
    color: var(--accent);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.modal-title span {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent);
}

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

.apply-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.apply-form .form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 500;
}

.apply-form .form-group input {
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background-color: transparent;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.apply-form .form-group input:focus {
    border-color: var(--text-primary);
}

.apply-submit-btn {
    margin-top: 1rem;
    padding: 1.2rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.apply-submit-btn:hover {
    background-color: transparent;
    color: var(--text-primary);
}

.simple-footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 10%;
}

/* Responsive Careers */
@media (max-width: 992px) {
    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2.5rem;
    }
    
    .job-apply-link {
        width: 100%;
        text-align: center;
    }
    
    .alerts-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }
    
    .alerts-form {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Additional mobile optimizations (<= 768px) */
@media (max-width: 768px) {
    .careers-hero {
        padding: 5rem 5% 3rem;
    }
    
    .job-alerts-section {
        padding: 3rem 5%;
    }
    
    .openings-list {
        padding: 4rem 5% 5rem;
    }
    
    .modal-content {
        padding: 3rem 1.8rem;
    }
}

