/* Custom Design System & Global Styles for Dora Uribe Law */

:root {
    --caribbean-blue: #0077be;
    --ocean-blue: #0047AB;
    --caribbean-teal: #008080;
    --sunset-orange: #FF7F50;
    --golden-sand: #F4A460;
    --sand-light: #fdfbf7;
    --reef-green: #2e8b57;
    --slate-dark: #0f172a;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--sand-light);
    color: #2d3748;
}

/* Glassmorphism Components */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-card-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typography Helpers */
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Hero Background Slider Styles */
.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 6s ease-out;
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(253, 251, 247, 0.93) 0%, rgba(253, 251, 247, 0.82) 55%, rgba(0, 119, 190, 0.25) 100%);
    z-index: 1;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.90) 0%, rgba(15, 23, 42, 0.88) 60%, rgba(0, 128, 128, 0.75) 100%);
    z-index: 1;
}

/* Chart Containers */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    height: 320px;
    max-height: 450px;
}

@media (min-width: 768px) {
    .chart-container {
        height: 380px;
        max-height: 500px;
    }
}

/* Tab Management & Animations */
.step-active {
    color: var(--caribbean-blue);
    border-bottom: 2px solid var(--caribbean-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Color Utilities */
.vibrant-bg-blue { background-color: var(--ocean-blue); }
.vibrant-text-blue { color: var(--ocean-blue); }
.vibrant-bg-teal { background-color: var(--caribbean-teal); }
.vibrant-text-teal { color: var(--caribbean-teal); }
.vibrant-bg-orange { background-color: var(--sunset-orange); }
.vibrant-bg-sand { background-color: var(--golden-sand); }

/* CSS Flowchart Components */
.flowchart-node {
    background-color: #ffffff;
    border: 4px solid var(--caribbean-teal);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flowchart-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1);
}

.flowchart-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--sunset-orange);
    margin: -0.5rem 0;
    z-index: 1;
}

/* Language Selector Component */
.lang-selector {
    display: inline-flex;
    align-items: center;
    background-color: rgba(226, 232, 240, 0.7);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 9999px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
}

.lang-btn:hover {
    color: #1e293b;
    background-color: rgba(255, 255, 255, 0.5);
}

.lang-btn.active {
    background-color: var(--ocean-blue);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 71, 171, 0.3);
}

/* Footer Styling Enhancements */
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    transition: background 0.2s ease;
}

.footer-badge:hover {
    background: rgba(255, 255, 255, 0.08);
}
