/* ...existing code... */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 2.5rem;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.whatsapp-float:hover {
    background-color: #128c7e;
}



/* CV Floating Button */
.cv-float-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #5361FF;
    color: #fff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    cursor: pointer;
    transition: background 0.3s;
    padding: 0 24px;
    height: 48px;
    min-width: 140px;
    gap: 10px;
}
.cv-float-btn:hover {
    background: #303998;
}
.cv-float-text {
    margin-left: 6px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* CV Sliding Panel */
.cv-slide-panel {
    position: fixed;
    bottom: 100px;
    right: -340px;
    width: 320px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 8px 32px rgba(60,60,60,0.25);
    border-radius: 18px 0 0 18px;
    padding: 28px 24px 18px 24px;
    z-index: 1002;
    transition: right 0.4s cubic-bezier(.77,0,.18,1);
    display: flex;
    flex-direction: column;
    gap: 18px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(40,200,120,0.10);
}
.cv-slide-panel.active {
    right: 30px;
}
.cv-slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: #222;
    letter-spacing: 1px;
}
.cv-slide-close {
    cursor: pointer;
    font-size: 2rem;
    color: #253fd3;
    transition: color 0.2s;
    margin-left: 10px;
}
.cv-slide-close:hover {
    color: #122a8c;
}
.cv-slide-link {
    background: linear-gradient(90deg, #253cd3 60%, #14128c 100%);
    color: #fff;
    padding: 12px 0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(60,60,60,0.08);
    transition: background 0.3s, transform 0.2s;
    text-align: center;
    letter-spacing: 0.5px;
}
.cv-slide-link:hover {
    background: linear-gradient(90deg, #253cd3 60%, #14128c 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(60,60,60,0.12);
}.cv-float-btn,
.cv-slide-panel,
.cv-overlay {
    transition: opacity 0.3s, visibility 0.3s;
}
.cv-hide {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}
.cv-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 30, .78);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.cv-preview-modal.active {
    opacity: 1;
    visibility: visible;
}
.cv-preview-dialog {
    display: flex;
    flex-direction: column;
    width: min(900px, 100%);
    height: min(90vh, 900px);
    overflow: hidden;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
}
.cv-preview-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 1rem;
    color: #222;
    border-bottom: 1px solid rgba(42, 59, 71, .12);
}
.cv-preview-header h2 {
    margin: 0;
    font-size: 1rem;
}
.cv-preview-close {
    width: 2rem;
    height: 2rem;
    padding: 0;
    color: #253fd3;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
}
.cv-preview-frame {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
}

.work-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    align-items: stretch;
    gap: 1.25rem;
}
.work-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(42, 59, 71, .12);
    border-radius: 6px;
    box-shadow: 0 5px 18px rgba(42, 59, 71, .08);
}
.work-card__visual {
    display: flex;
    aspect-ratio: 16 / 10;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}
.work-card__visual-label {
    padding: .5rem 1rem;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}
.work-card__visual--poster {
    background: #123543;
}
.work-card__visual--poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.work-card__visual--web {
    background: #286b83;
}
.work-card__visual--climate {
    background: #4c805d;
}
.work-card__visual--animation {
    background: #a74d3e;
}
.work-card__visual--data {
    background: #d29d27;
    color: #2a3b47;
}
.work-card__body {
    padding: 1rem 1rem 1.1rem;
}
.work-card__body h3 {
    margin: 0 0 .45rem;
    color: var(--dark-color);
    font-size: 1rem;
}
.work-card__body p {
    min-height: 3.2em;
    color: var(--text-color);
    font-size: .85rem;
    line-height: 1.55;
}
.work-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .9rem;
}
.work-card__tags span {
    padding: .2rem .5rem;
    border-radius: 3px;
    background: #f0f2f4;
    color: var(--dark-color);
    font-size: .7rem;
}
.read-more-btn{
    display: inline-block;
    background-color: #5361FF;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}
.backg{
    background: url('../../back.png') no-repeat;
    background-size: cover;
    background-position: center;
}

/* Footer / Ad utility styles added to replace inline styles */
.footer__ad{
    min-width: 180px;
}
.footer--alt{
    margin-top: 36px;
    padding: 18px 16px;
    border-top: 1px solid #e6eef6;
    background: #fbfdff;
}
.footer__container--compact{
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.footer__copyright{
    color: #334155;
}
.footer__link--privacy{
    color: #0366d6;
    text-decoration: none;
}

/* Ensure AdSense ins blocks are displayed when inside footer ad containers */
.footer__ad ins.adsbygoogle {
    display: block;
}

/* News / Article card styles to replace inline styles */
.news-card{
    background:#fff;
    border-radius:16px;
    box-shadow:0 2px 12px rgba(0,0,0,0.08);
    padding:1.5rem;
    margin-bottom:2rem;
    display:flex;
    flex-direction:column;
    align-items:center;
    max-width:400px;
}
.news-card__img{
    width:100%;
    max-width:320px;
    border-radius:12px;
    margin-bottom:1rem;
}
.news-card__img--cover{
    height:200px;
    object-fit:cover;
}
.news-card__title{
    color:#fc575e;
    margin-bottom:0.5rem;
    text-align:center;
    font-size:1.1rem;
}
.news-card__summary{
    margin-bottom:1rem;
    text-align:center;
}
.news-read-link{
    background:#ff9800;
    color:#fff;
    padding:8px 18px;
    border-radius:8px;
    font-weight:bold;
    text-decoration:none;
}

.article-card{
    background:#fff;
    border-radius:16px;
    box-shadow:0 2px 12px rgba(0,0,0,0.08);
    padding:2rem;
}
.article-img{
    width:100%;
    max-width:480px;
    border-radius:12px;
    margin-bottom:1rem;
}
.article-title{color:#fc575e;margin-bottom:0.5rem}
.article-date{margin-bottom:1rem;color:#888;font-size:0.95rem}

.share-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border-radius:8px;font-weight:bold;color:#fff;text-decoration:none}
.share-btn--whatsapp{background:#25D366}
.share-btn--facebook{background:#4267B2}
.share-btn--linkedin{background:#0077b5}

.news-nav-link{background:#eee;color:#fc575e;padding:8px 18px;border-radius:8px;font-weight:bold;text-decoration:none}

.external-link{color:#ff9800}

.article-share{display:flex;gap:1rem;justify-content:center}

/* Utility classes for embed and portfolio */
.embed-responsive{position:relative;padding-bottom:56.25%;height:0;overflow:hidden;margin-bottom:1rem}
.embed-iframe{position:absolute;top:0;left:0;width:100%;height:100%}
.portfolio-img{width:100%;border-radius:6px;margin-top:1rem}

.news-source{color:#999;margin-bottom:0.5rem;display:block}
.muted-center{text-align:center;color:#666}
.error-center{text-align:center;color:#f44}

/* News list grid helper to replace inline flex styles */
.news-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:2rem}
.loading-center{text-align:center;color:#666;padding:2rem}

