/* 
   ==========================================================================
   Premium Portfolio Stylesheet - Mauricio Restrepo Betancur
   Design System: Deep Space Navy, Indigo, Violet, Cyan, and Emerald Glow
   ========================================================================== 
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

/* --- Design Tokens (Aligned with Smart Chain Solutions Corporate Identity) --- */
:root {
    --bg-primary: #030712;
    --bg-secondary: #070d1d;
    --bg-card: rgba(15, 23, 42, 0.72);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(0, 102, 255, 0.5);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Brand Colors - Exact SCS Corporate Palette */
    --color-electric: #0066FF;
    --color-magenta: #F000FF;
    --color-cyan: #00F0FF;
    --color-emerald: #10B981;
    --color-amber: #F59E0B;
    --color-indigo: #0066FF;
    --color-violet: #F000FF;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0066FF 0%, #00F0FF 50%, #F000FF 100%);
    --gradient-glow: linear-gradient(90deg, #0066FF, #00F0FF, #10b981);
    --gradient-text: linear-gradient(90deg, #ffffff 30%, #cbd5e1 100%);
    --gradient-brand-text: linear-gradient(135deg, #0066FF 0%, #00F0FF 45%, #F000FF 100%);
    
    /* Layout & Shadows */
    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-title: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-glow: 0 0 25px rgba(0, 102, 255, 0.25);
    --shadow-emerald: 0 0 20px rgba(16, 185, 129, 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 20px;
    --radius-md: 12px;
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ambient Background Lights */
body::before {
    content: "";
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    font-weight: 300;
}

.gradient-brand-text {
    background: var(--gradient-brand-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Layout Elements --- */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

/* Glassmorphism Card Style - Aligned with Smart Chain Solutions */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* --- Navigation Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(3, 7, 18, 0.96);
    border-bottom: 1px solid rgba(0, 102, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-smooth);
}

header.scrolled .nav-container {
    height: 60px;
}

.logo {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

nav a:hover, nav a.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* --- Mobile Menu Toggle Button --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.menu-toggle .hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.menu-toggle.open .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    min-height: 90vh;
    padding-top: 100px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0066FF 0%, #00F0FF 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 28px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    border-color: #00F0FF;
    background: rgba(0, 240, 255, 0.12);
    color: #00F0FF;
    transform: translateY(-2px);
}

/* Hero Visual / Avatar Card */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    width: 100%;
    max-width: 320px;
    height: 380px;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 90%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, var(--color-indigo), transparent);
    animation: rotate 6s linear infinite;
    z-index: 1;
}

.profile-card-content {
    background: var(--bg-secondary);
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: 2;
    border-radius: calc(var(--radius-lg) - 2px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.profile-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.profile-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--color-indigo);
}

.profile-card h3 {
    margin-bottom: 0.3rem;
}

.profile-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-tag {
    margin-top: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-emerald);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-emerald);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-indigo);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Philosophy (Ikigai) Section --- */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.philosophy-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.quote-box {
    border-left: 3px solid var(--color-indigo);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-primary);
}

.ikigai-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ikigai-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.ikigai-card.active {
    border-color: var(--color-emerald);
    box-shadow: var(--shadow-emerald);
}

.ikigai-card h4 {
    color: var(--color-emerald);
    margin-bottom: 0.5rem;
}

/* --- Domains (Services) Section --- */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.domain-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.domain-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.domain-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--color-indigo);
}

.domain-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.domain-card li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.domain-card li::before {
    content: "✓";
    color: var(--color-emerald);
    font-weight: bold;
}

/* --- Impact Metrics Section --- */
.impact-bg {
    background: var(--bg-secondary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.metric-card {
    padding: 1.8rem 1rem !important;
}

.metric-card h3 {
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
    white-space: nowrap;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.metric-suffix {
    font-size: 0.65em;
    font-weight: 500;
    margin-left: 0.1em;
}

.metric-card p {
    font-weight: 500;
    color: var(--text-primary);
}

.metric-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.3rem;
}

/* --- Experience Timeline Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    width: 50%;
    padding: 0 2.5rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    top: 5px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 3px solid var(--color-indigo);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-marker {
    background: var(--color-cyan);
    box-shadow: 0 0 15px var(--color-cyan);
    transform: translateX(-50%) scale(1.2);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--border-hover);
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-indigo);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.timeline-item:nth-child(odd) .timeline-content ul {
    align-items: flex-end;
}

.timeline-item:nth-child(even) .timeline-content ul {
    align-items: flex-start;
}

/* --- Certifications Grid & Search Section --- */
.search-wrapper {
    max-width: 500px;
    margin: 0 auto 3rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.search-input:focus {
    border-color: var(--color-indigo);
    box-shadow: var(--shadow-glow);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.cert-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.cert-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--color-cyan);
    margin-bottom: 0.5rem;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.8rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cert-tag {
    background: rgba(99, 102, 241, 0.08);
    color: var(--color-indigo);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 500;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-indigo);
}

.contact-item h4 {
    margin-bottom: 0.2rem;
}

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

.form-group {
    position: relative;
}

.form-input, .form-textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--color-indigo);
    box-shadow: var(--shadow-glow);
}

/* Booking Link Styling */
.booking-link {
    color: var(--color-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    border-bottom: 1px dashed var(--color-cyan);
    padding-bottom: 2px;
}

.booking-link:hover {
    color: var(--color-indigo);
    border-bottom-color: var(--color-indigo);
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

/* --- Footer --- */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

footer .footer-logo {
    font-family: var(--font-title);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

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

/* --- Client Companies (Marquee & Directory) --- */
.empresas-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    padding: 0.5rem 0;
    user-select: none;
    /* Fade out edges mask */
    mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee 35s linear infinite;
    padding: 0.5rem 0.75rem;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-reverse {
    animation-direction: reverse;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.marquee-item:hover {
    border-color: var(--color-indigo);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    background: rgba(99, 102, 241, 0.05);
}

.marquee-dot {
    width: 8px;
    height: 8px;
    background: var(--color-cyan);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--color-cyan);
}

#toggle-directory-btn {
    margin: 2rem auto;
    font-size: 1rem;
    padding: 0.9rem 2.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}

#toggle-directory-btn:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.directory-wrapper, .certs-wrapper {
    max-height: 45000px;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(0);
    margin-top: 3rem;
    text-align: left;
}

.directory-wrapper.hidden, .certs-wrapper.hidden {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-30px);
    margin-top: 0;
    pointer-events: none;
}

.directory-search-box {
    max-width: 500px;
    margin: 0 auto 2.5rem auto;
    position: relative;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 0 auto 3rem auto;
    max-width: 900px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    border-color: var(--color-indigo);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.05);
}

.filter-btn.active {
    background: var(--gradient-hero);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.company-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.company-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.company-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.company-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.company-program {
    background: rgba(6, 182, 212, 0.08);
    color: var(--color-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.05);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 968px) {
    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }

    #site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(7, 10, 19, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--border-color);
        padding: 100px 2rem 2rem 2rem;
        transition: var(--transition-smooth);
        z-index: 105;
    }

    #site-nav.open {
        right: 0;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    #site-nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    #site-nav a {
        font-size: 1.15rem;
        display: block;
    }

    h2 {
        font-size: 1.8rem;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 2rem;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(odd) {
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-content ul {
        align-items: flex-start;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-marker {
        left: 0;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Methodology Section Mobile */
    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* 
   ==========================================================================
   Scroll Progress Bar
   ========================================================================== 
*/
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-indigo) 0%, var(--color-cyan) 50%, var(--color-emerald) 100%);
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* 
   ==========================================================================
   SCS Logo Integrations (Navbar & Timeline)
   ========================================================================== 
*/
.logo-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-divider {
    color: var(--border-color);
    font-weight: 300;
    font-size: 1.2rem;
}

.nav-scs-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.95);
    transition: var(--transition-smooth);
}

.nav-scs-logo:hover {
    filter: brightness(1) drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.timeline-company-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.timeline-item:nth-child(odd) .timeline-company-header {
    justify-content: flex-end;
}

.timeline-item:nth-child(even) .timeline-company-header {
    justify-content: flex-start;
}

.timeline-company-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.2) brightness(0.9);
}

.timeline-item:hover .timeline-company-logo {
    filter: grayscale(0) brightness(1) drop-shadow(0 0 6px rgba(99, 102, 241, 0.3));
}

/* 
   ==========================================================================
   Hero Profile Card Image
   ========================================================================== 
*/
.profile-img-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid transparent;
    background-image: linear-gradient(var(--bg-secondary), var(--bg-secondary)), 
                      linear-gradient(135deg, var(--color-indigo), var(--color-cyan), var(--color-emerald));
    background-origin: border-box;
    background-clip: content-box, border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.profile-card:hover .profile-img-container {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
}

.profile-card:hover .profile-image {
    transform: scale(1.08);
}

/* 
   ==========================================================================
   Methodology (ADN Ser & Hacer) Section
   ========================================================================== 
*/
#metodologia {
    background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.05) 0%, rgba(0, 0, 0, 0) 60%);
}

.methodology-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: flex-start;
}

.methodology-visual-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.visual-badge {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--color-cyan);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.05);
}

.infographic-preview-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.infographic-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition-smooth);
}

.infographic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 10, 19, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transition: var(--transition-smooth);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.zoom-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.zoom-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.infographic-preview-container:hover .infographic-thumbnail {
    transform: scale(1.05);
    filter: blur(2px);
}

.infographic-preview-container:hover .infographic-overlay {
    opacity: 1;
}

.methodology-pillars-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.concept-callout {
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-cyan);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.concept-callout h4 {
    color: var(--color-cyan);
    margin-bottom: 0.4rem;
}

.pillars-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pillar-card {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pillar-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pillar-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-indigo);
}

.pillar-card:hover .pillar-icon {
    background: var(--color-indigo);
    border-color: transparent;
}

.pillar-card:hover .pillar-icon svg {
    fill: #fff;
}

/* 
   ==========================================================================
   Lightbox Modal for Infographic
   ========================================================================== 
*/
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 10, 19, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-secondary);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 3rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border-radius: 50%;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-indigo);
    transform: rotate(90deg);
}

/* 
   ==========================================================================
   Footer Double Logo
   ========================================================================== 
*/
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-divider {
    color: var(--border-color);
    font-weight: 300;
    font-size: 1.4rem;
}

.footer-company-logos {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.footer-company-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.85) grayscale(0.2);
    transition: var(--transition-smooth);
}

.footer-company-logo:hover {
    filter: brightness(1) grayscale(0) drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
}

/* 
   ==========================================================================
   Scroll Reveal System
   ========================================================================== 
*/
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Transition delays */
.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

.delay-4 {
    transition-delay: 0.6s;
}

/* Revealed active state */
.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0) !important;
}

/* Disable scroll reveal transitions on user motion reduction preferences */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none !important;
        transition: none;
    }
}

/* --- Mobile Responsiveness & Adaptability (Devices under 480px) --- */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.5rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .ikigai-visual {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .domains-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.2rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cert-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.2rem;
    }
    
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }
    
    .concept-callout {
        padding: 1.2rem 1.5rem;
    }
    
    .pillar-card {
        padding: 1.2rem;
    }
    
    .timeline-content {
        padding: 1.2rem;
    }
    
    .contact-wrapper {
        gap: 2.2rem;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
    
    .contact-item {
        gap: 1rem;
    }
    
    .footer-logos {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .footer-company-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 2.2rem;
        width: 40px;
        height: 40px;
    }
}

/* 
   ==========================================================================
   Company Detail Modal & Interactivity Styles
   ========================================================================== 
*/
/* Card and Marquee interactivity */
.company-card, .marquee-item {
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* Glowing dot for featured marquee items */
.marquee-dot.glow-dot {
    background: var(--color-cyan);
    box-shadow: 0 0 12px var(--color-cyan), 0 0 4px #fff;
    width: 10px;
    height: 10px;
}

/* Featured indicators */
.success-story-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--color-cyan);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-top: 0.5rem;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

.view-case-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-cyan);
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.company-card:hover .view-case-link {
    opacity: 1;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.marquee-case-badge {
    font-size: 0.8rem;
    margin-left: 0.3rem;
    filter: drop-shadow(0 0 3px rgba(6, 182, 212, 0.5));
}

/* Modal styling */
.company-modal-overlay {
    z-index: 2100;
}

.company-modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(12, 16, 31, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.1);
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) var(--bg-primary);
}

/* Custom Scrollbar for Modal content */
.company-modal-content::-webkit-scrollbar {
    width: 6px;
}
.company-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.company-modal-content::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

/* Header */
.company-modal-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.company-modal-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--color-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

.company-modal-header h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.company-program-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--color-indigo);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Metadata Grid */
.company-modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meta-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.3));
}

.meta-item div {
    display: flex;
    flex-direction: column;
}

.meta-item strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.meta-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Problem vs Solution */
.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.modal-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modal-card h3 {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.problem-card {
    border-left: 4px solid #f97316; /* Pain point Orange */
}

.problem-card h3 {
    color: #f97316;
}

.solution-card {
    border-left: 4px solid var(--color-cyan); /* Solution Cyan */
}

.solution-card h3 {
    color: var(--color-cyan);
}

.modal-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Results section */
.results-card {
    margin-bottom: 2rem;
}

.results-card h3 {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.results-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.2rem;
}

.results-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    padding-left: 1.8rem;
}

.quant-results-card .results-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-emerald);
    font-weight: bold;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
}

.qual-results-card .results-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--color-violet);
    font-weight: bold;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.4));
}

/* Legacy Card */
.legacy-card {
    margin-bottom: 1rem;
    border-left: 4px solid var(--color-violet);
}

.legacy-card h3 {
    color: var(--color-violet);
}

/* Fallback card */
.fallback-card {
    text-align: center;
    padding: 3rem;
}

.fallback-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
    .company-modal-content {
        padding: 2rem;
        max-height: 90vh;
    }
    
    .company-modal-header h2 {
        font-size: 1.8rem;
    }
    
    .problem-solution-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Global Hidden Utility */
.hidden {
    display: none !important;
}
