/* --- Modern Redesign by Gemini --- */

/* 1. General Styles & Variables
-------------------------------------------------- */
:root {
    --bg-color: #0D1117;
    --primary-text: #E6EDF3;
    --secondary-text: #848D97;
    --accent-color: #58A6FF;
    --border-color: rgba(22, 47, 75, 0.8);
    --card-bg: rgba(22, 27, 34, 0.55);
    --font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, rgba(56, 139, 253, 0.1) 0%, rgba(13, 17, 23, 0) 40%);
    color: var(--secondary-text);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
    color: var(--accent-color);
    opacity: 0.85;
}

/* 2. Layout & Structure
-------------------------------------------------- */
.main-container-single-col {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 100vh;
}

/* Animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-section {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animated-section {
    opacity: 0; /* Start hidden */
    animation: fadeInUp 0.6s ease-out forwards 0.3s; /* Delayed animation */
}


/* 3. Header & Intro
-------------------------------------------------- */
.profile-image-top {
    max-width: 130px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 4px;
    background-color: var(--bg-color);
}

.kpi-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;
    color: var(--primary-text);
    line-height: 1.2;
}

.kpi-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--secondary-text);
    font-weight: 300;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--secondary-text);
    max-width: 720px;
}
.intro-text p:last-child { margin-bottom: 0; }

.section-title {
    font-size: 1.5rem;
    color: var(--primary-text);
    font-weight: 500;
    margin-bottom: 1.5rem !important;
}


/* 4. Stats & Links Sections (Glassmorphism Cards)
-------------------------------------------------- */
.stats-section, .links-section {
    width: 100%;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.stat-block, .link-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    display: flex;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    color: var(--secondary-text);
}

.stat-block:hover, .link-item:hover {
    transform: translateY(-5px);
    background-color: rgba(33, 38, 45, 0.7);
    border-color: rgba(88, 166, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Specifics for Stat Blocks */
.stat-block {
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0.5rem;
    min-height: 100px;
    height: 100%;
    cursor: help;
}

.stat-number {
    display: block;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--primary-text);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-description {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specifics for Link Items */
.link-item {
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-text);
    min-height: 60px;
}
.link-item i {
    color: var(--accent-color);
    opacity: 0.8;
    font-size: 1rem;
}

/* 5. Footer & Social Section
-------------------------------------------------- */
.footer-container {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.social-icons { display: flex; flex-wrap: wrap; gap: 20px; }
.social-icon {
    font-size: 1.8rem;
    color: var(--secondary-text);
    transition: transform 0.2s ease, color 0.2s ease;
}
.social-icon:hover {
    color: var(--accent-color);
    transform: scale(1.15);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--primary-text);
    font-weight: 400;
    opacity: 0.9;
}

/* Logo Tile Styles */
.logo-tile {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 80px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.logo-tile:hover {
    transform: translateY(-5px);
    background-color: rgba(33, 38, 45, 0.7);
    border-color: rgba(88, 166, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.collab-logo-item {
    max-height: 45px;
    width: auto;
    max-width: 100%;
    opacity: 0.7;
    filter: grayscale(80%) contrast(1.2);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.cert-logo-item {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    opacity: 0.85;
    filter: grayscale(50%) contrast(1);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-tile:hover .collab-logo-item,
.logo-tile:hover .cert-logo-item {
    opacity: 1;
    filter: grayscale(0%);
}

.footer-compact {
    font-size: 0.85em;
    color: var(--secondary-text);
    opacity: 0.8;
}
.footer-compact a {
    color: var(--secondary-text);
    font-weight: 500;
}

/* 6. Floating Elements & Banners
-------------------------------------------------- */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 25px; right: 25px;
    background-color: #25D366; color: #FFF; border-radius: 50%;
    text-align: center; font-size: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 100; display: flex; justify-content: center; align-items: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe5b;
    color: #FFF;
}

.tooltip-inner {
    background-color: #0D1117; color: var(--primary-text); border: 1px solid var(--border-color);
    font-size: 0.8rem; padding: 8px 12px; border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); max-width: 250px; font-weight: 400;
}
.tooltip.bs-tooltip-top .tooltip-arrow::before { border-top-color: #0D1117; }
.tooltip.bs-tooltip-bottom .tooltip-arrow::before { border-bottom-color: #0D1117; }
.tooltip.bs-tooltip-start .tooltip-arrow::before { border-left-color: #0D1117; }
.tooltip.bs-tooltip-end .tooltip-arrow::before { border-right-color: #0D1117; }


.cookie-consent-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--secondary-text);
    padding: 1rem 1.5rem; z-index: 1050; display: none; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 15px;
    font-size: 0.9rem; border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}
.cookie-consent-banner p { margin: 0; flex-grow: 1; margin-right: 15px; }
.cookie-consent-banner a { text-decoration: underline; font-weight: 500; }
.accept-cookie-btn {
    background-color: var(--accent-color); color: var(--bg-color); border: none; padding: 8px 20px;
    border-radius: 6px; font-weight: 600; cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.accept-cookie-btn:hover { background-color: #ffffff; color: #000; }

/* 7. Responsive Adjustments
-------------------------------------------------- */
@media (max-width: 767.98px) {
    .content-wrapper { padding: 1rem !important; }
    .stat-block { min-height: 90px; }
    .footer-container { padding-top: 1.5rem; }

    .cookie-consent-banner { flex-direction: column; text-align: center; }
    .cookie-consent-banner p { margin-right: 0; margin-bottom: 10px; }
    .accept-cookie-btn { width: 100%; }
}
