:root {
    --primary-background: #FFFFFF;
    --secondary-background: #F8FAFC;
    --dark-section-background: #0F172A;
    --accent-color: #38BDF8;
    --accent-hover: #0EA5E9;
    --text-primary-on-light: #1E293B;
    --text-secondary-on-light: #475569;
    --text-primary-on-dark: #F8FAFC;
    --text-secondary-on-dark: #CBD5E1;
    --radius: 12px;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--primary-background);
    color: var(--text-primary-on-light);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: inherit;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color var(--transition-speed) ease-in-out, background-color var(--transition-speed) ease-in-out;
}

a {
    color: var(--accent-color);
}

a:hover {
    color: var(--accent-hover);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    border-radius: var(--radius);
    transition: var(--transition-speed) ease-in-out;
}

button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    body {
        font-size: 0.95rem;
    }

    .text-break-mobile {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* ===== header_section ===== */
#header {
    background-color: var(--primary-background);
    width: 100%;
    border-bottom: 1px solid var(--secondary-background);
    position: relative;
    z-index: 100;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-link-custom {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    color: var(--text-secondary-on-light);
}

.nav-link-custom:hover {
    color: var(--accent-color);
}

.cta-custom {
    background-color: var(--accent-color);
    color: var(--text-primary-on-dark);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.cta-custom:hover {
    background-color: var(--accent-hover);
    color: var(--text-primary-on-dark);
}

.hamburger-btn i,
.close-btn i {
    font-size: 32px;
}

.mobile-overlay {
    background-color: var(--primary-background);
    z-index: 10000;
}

.mobile-nav-link {
    font-weight: 600;
    color: var(--text-primary-on-light);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--accent-color);
}

/* ===== hero_section ===== */
.hero-section {
    background-attachment: fixed;
}

.morph-shape {
    transition: transform 0.2s ease-out;
    pointer-events: none;
    animation: morph-animation 15s infinite alternate ease-in-out;
}

@keyframes morph-animation {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }

    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

.transition-all {
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--text-primary-on-light) !important;
}

.btn:active {
    transform: scale(0.98);
}

/* ===== about_sol_info ===== */
#about-sol {
    width: 100%;
}

#about-sol .ph {
    display: inline-block;
    line-height: 1;
}

#about-sol .rounded-circle {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== history_timeline_cards ===== */
#history-timeline {
    overflow: hidden
}

.timeline-container {
    position: relative;
    padding: 40px 0
}

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

.timeline-card-wrapper {
    position: relative;
    margin-bottom: 80px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center
}

.timeline-card-wrapper:nth-child(even) {
    justify-content: flex-end
}

.timeline-card {
    width: 44%;
    background: var(--primary-background);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1)
}

.timeline-card.visible {
    opacity: 1;
    transform: translateY(0)
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border: 5px solid var(--primary-background);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3
}

@media (max-width:991px) {
    .timeline-line {
        left: 20px;
        transform: none
    }

    .timeline-dot {
        left: 20px;
        top: 40px;
        transform: translateX(-50%)
    }

    .timeline-card {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding: 30px
    }

    .timeline-card-wrapper {
        justify-content: flex-start !important;
        margin-bottom: 40px
    }
}

/* ===== price_history_cards ===== */
.js-history-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.js-history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

/* ===== important_dates_timeline ===== */
#history-timeline {
    background-color: var(--secondary-background);
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--accent-color);
    z-index: 1;
}

.timeline-item {
    position: relative;
    padding-left: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: 10px;
    top: 15px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 4px solid var(--primary-background);
    z-index: 2;
}

@media(min-width:768px) {
    .timeline-item {
        padding-left: 60px;
    }
}

.timeline-card {
    background-color: var(--primary-background);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--text-secondary-on-dark);
}

/* ===== stability_analysis_cards ===== */
#stability-analysis .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#stability-analysis .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

/* ===== consultation_program_cards ===== */
#consultation-program .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
}

#consultation-program .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .1) !important;
}

#consultation-program .ph {
    display: inline-block;
    transition: transform 0.3s ease;
}

#consultation-program .card:hover .ph {
    transform: scale(1.1);
}

/* ===== target_audience_cards ===== */
.js-audience-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-audience-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* ===== consultation_form ===== */
#application-form .form-control:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.1) !important;
    outline: 0 !important;
}

#application-form .btn:hover {
    background-color: var(--accent-hover) !important;
}

#application-form .form-check-input:checked {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

#application-form .form-control::placeholder {
    color: var(--text-secondary-on-light);
    opacity: 0.6;
}

/* ===== chronological_evolution ===== */
.chronological-evolution-list .timeline-line,
.chronological-evolution-list .timeline-dot { display: none !important; }
.chronological-evolution-list .timeline-item {
    opacity: 1 !important;
    transform: none !important;
    padding-left: 0 !important;
}
.chronological-evolution-list .timeline-card { padding: 2rem; }

/* ===== uniform images ===== */
.analysis-image-wrap, .audience-image-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: var(--secondary-background);
}
.analysis-image-wrap { aspect-ratio: 16 / 9; }
.audience-image-wrap { aspect-ratio: 4 / 3; }
.analysis-img, .audience-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ===== no horizontal scroll on mobile ===== */
html, body { overflow-x: hidden; max-width: 100%; }
@media (max-width: 991px) {
    .hero-section { background-attachment: scroll !important; }
    .morph-bg { display: none !important; }
}

/* ===== footer ===== */
.js-footer-link {
    transition: color 0.3s ease;
}