:root {
    --brand-blue: #224bff;
    --brand-dark: #020024;
    --primary-color: #224bff;
    --secondary-color: #020024;
    --bg-dark: #020024;
    --bg-light: #ffffff;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Syne', sans-serif;

    /* Semantic Gray Palette (Blueish grays) */
    --gray-25: hsl(229, 25%, 99%);
    --gray-50: hsl(229, 20%, 97%);
    --gray-100: hsl(229, 15%, 92%);
    --gray-200: hsl(229, 12%, 85%);
    --gray-300: hsl(229, 10%, 75%);
    --gray-400: hsl(229, 8%, 65%);
    --gray-500: hsl(229, 6%, 55%);
    --gray-600: hsl(229, 6%, 45%);
    --gray-700: hsl(229, 8%, 35%);
    --gray-800: hsl(229, 10%, 25%);
    --gray-900: hsl(229, 12%, 15%);

    /* Semantic Texts & Shadows */
    --text-primary: var(--bg-light);
    --text-secondary: var(--gray-300);
    --text-muted: var(--gray-500);
    --border-light: hsla(229, 15%, 95%, 0.1);
    --overlay-light: hsla(229, 15%, 95%, 0.05);

    /* Micro-Gradients System for Buttons */
    --btn-gradient: linear-gradient(135deg, #224bff 0%, #112cbc 50%, #5078fa 100%);
    --btn-gradient-hover: linear-gradient(135deg, #335cff 0%, #224bff 50%, #112cbc 100%);
    --btn-glow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(34, 75, 255, 0.3);

    /* Fluid Typography System (scales dynamically with viewport) */
    --fs-h1: clamp(3rem, 10vw + 1rem, 7.5rem);
    --fs-h2: clamp(2.4rem, 8vw + 0.8rem, 5rem);
    --fs-h3: clamp(2rem, 6vw + 0.6rem, 3.5rem);
    --fs-h4: clamp(1.6rem, 4vw + 0.5rem, 2.6rem);
    --fs-h5: clamp(1.35rem, 3vw + 0.4rem, 2rem);
    --fs-h6: clamp(1.15rem, 1.5vw + 0.3rem, 1.4rem);
    --fs-base: clamp(1rem, 0.6vw + 0.85rem, 1.15rem);
    --fs-lead: clamp(1.2rem, 1.5vw + 0.6rem, 1.6rem);

    /* Font Weights (Variable Fonts) */
    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 550;
    --fw-semibold: 650;
    --fw-bold: 900;

    /* Line Heights */
    --lh-body: 1.6;

    /* Border Radius Scale */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 100px;

    /* Section Spacing */
    --section-spacing: 140px;
    --section-spacing-mobile: 70px;
}

section,
.section-padding,
.py-section {

    position: relative;
    overflow: hidden;
}

@media (max-width: 992px) {

    section,
    .section-padding,
    .py-section {
        padding-top: var(--section-spacing-mobile);
        padding-bottom: var(--section-spacing-mobile);
    }
}

body,
p,
.lead {
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--fs-h1);
    font-weight: var(--fw-bold);
    line-height: 1;
    margin-bottom: 0.5em;
    letter-spacing: -0.04em;
}

h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: 1.1;
    margin-bottom: 0.5em;
    letter-spacing: -0.03em;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    line-height: 1.2;
}

h4 {
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
}

h5 {
    font-size: var(--fs-h5);
    font-weight: var(--fw-semibold);
}

h6 {
    font-size: var(--fs-h6);
    font-weight: var(--fw-semibold);
}


.promo-tag {
    font-family: var(--font-accent);
    color: var(--brand-blue);
    border: 1px solid var(--border-light);
    display: inline-block;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    background: var(--overlay-light);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--brand-blue);
    margin: 0 auto 25px;
    border-radius: var(--radius-full);
}

.container-g {
    width: min(90%, 1400px);
    margin: auto;
    line-height: var(--lh-body);
    /* Mayor espacio entre líneas para una apariencia limpia */
    color: var(--gray-100);
    /* Color suave con matiz azulado para mejor legibilidad */
    letter-spacing: 0.1px;
    /* Espaciado entre letras */
    font-size: var(--fs-base);
    /* Tamaño de fuente cómodo para leer */
}

.test {
    border: red solid 1px;
}

.img-container {
    width: 100%;
}

.container-g img {
    border-radius: var(--radius-sm);
}

.container-g video {
    border-radius: var(--radius-sm);
}

.container-cg {
    max-width: 1600px;
    padding: 25px;
    margin: auto;

}

.text-section {
    color: #000;

}

.text-section h1 {
    font-size: var(--fs-h1);
    line-height: 1.2;
    margin-bottom: 20px;
}

.image-section {
    position: relative;
    max-width: 100%;


}

.image-section img {
    width: 100%;
}

p,
.lead {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-normal);
    line-height: var(--lh-body);
    color: var(--text-secondary);
}

.lead {
    font-size: var(--fs-lead);
}

strong,
b {
    font-weight: var(--fw-semibold);
}



.main-title {
    font-size: var(--fs-h3);
    font-weight: bold;
    color: var(--bg-light);
}




@keyframes apa-scroll {
    0% {
        opacity: 0;
        transform: translateY(300px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.apa-scroll {
    animation-name: apa-scroll;
    animation-timeline: view();
    animation-range: cover;
    animation-range-start: 0%;
    animation-range-end: 30%;
}

/* Premium Staggered Fade-Up System */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.215, 0.61, 0.355, 1),
        transform 0.9s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: opacity, transform;
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Generate staggered delays via utilities */
.reveal-stagger>*:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-stagger>*:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-stagger>*:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-stagger>*:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal-stagger>*:nth-child(5) {
    transition-delay: 0.5s;
}

.reveal-stagger>*:nth-child(6) {
    transition-delay: 0.6s;
}

.reveal-stagger>*:nth-child(7) {
    transition-delay: 0.7s;
}

.reveal-stagger>*:nth-child(8) {
    transition-delay: 0.8s;
}

.card2,
.cardt {
    transition: all 0.4s ease-in-out;
    cursor: pointer;


}

.card2:hover {
    transform: scale(1.001);
    background-image: linear-gradient(163deg, #0084ff 0%, #00039e 40%);
    box-shadow: 0 0 1px 1px rgb(0, 11, 160);

}

.cardt:hover {
    transform: scale(1.001);
    box-shadow: 0 0 1px 3px rgb(0, 12, 187);
    filter: grayscale(50%);
}

.c-footer {
    background: linear-gradient(135deg, #060058 0%, #0012b4 100%);
    border-top: var(--border-light);
    padding: var(--section-spacing) 0 40px 0;
}

footer.c-footer .footer-column h6 {
    color: #ffffff !important;
    font-size: var(--fs-h6);
    position: relative;
    padding-bottom: 15px;
}

footer.c-footer .footer-column h6::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #224bff !important;
}

footer.c-footer .footer-column p,
footer.c-footer .footer-column p a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

footer.c-footer .footer-column p a:hover {
    color: #ffffff !important;
    padding-left: 5px !important;
}



.social-link-svg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: var(--border-light) !important;
    border-radius: var(--radius-full) !important;
    margin-right: 10px !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
}

.social-link-svg:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 15px rgba(34, 75, 255, 0.3) !important;
    background: var(--brand-blue) !important;
}

.footer-cta {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

footer.c-footer .footer-cta-btn {
    background: var(--btn-gradient) !important;
    color: #ffffff !important;
    padding: 15px 35px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    display: inline-block !important;
    margin-top: 15px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: none !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    box-shadow: var(--btn-glow) !important;
}

footer.c-footer .footer-cta-btn:hover {
    background: var(--btn-gradient-hover) !important;
    color: #ffffff !important;
    transform: scale(1.05) translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(34, 75, 255, 0.4), var(--btn-glow) !important;
}

.footer-column .no-after::after {
    display: none;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 20px 0;
    margin-top: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    /* Fixed mobile font sizes removed in favor of Fluid Typography */




}

/* Premium Button Overrides */
.btn-primary,
.btn-secondary,
.btn-outline-primary,
.btn-outline-light,
.footer-cta-btn {
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.btn-primary,
.btn-secondary {
    border: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--btn-gradient) !important;
    box-shadow: var(--btn-glow) !important;
    color: white !important;
}

.btn-primary:hover {
    background: var(--btn-gradient-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 75, 255, 0.4), var(--btn-glow) !important;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Progressive Loading State for Premium Buttons */
.btn-loading {
    position: relative !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: btn-progress 3s cubic-bezier(0.1, 0.7, 1, 0.1) forwards;
    z-index: 2;
}

@keyframes btn-progress {
    0% {
        width: 0%;
        opacity: 1;
    }

    90% {
        width: 100%;
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 0;
    }
}

.btn-outline-primary {
    border: 2px solid var(--brand-blue) !important;
    color: var(--brand-blue) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--btn-gradient) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: var(--btn-glow) !important;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--border-light) !important;
    color: white !important;
    background: transparent !important;
}

.btn-outline-light:hover {
    background: var(--overlay-light) !important;
    border-color: white !important;
    transform: translateY(-2px);
}

.rounded-pill {
    border-radius: var(--radius-full) !important;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-light);
}

/* Spacing Utilities */
.py-section {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

@media (max-width: 768px) {
    .py-section {
        padding-top: var(--section-spacing-mobile);
        padding-bottom: var(--section-spacing-mobile);
    }
}

/* ========================================
   PULL-TO-REFRESH STYLES
   ======================================== */

.pull-to-refresh-indicator {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: top 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.pull-to-refresh-indicator.visible {
    top: 20px;
}

.pull-to-refresh-indicator.refreshing {
    top: 20px;
}

/* Glassmorphism container for the logo */
.ptr-container {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-full);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(34, 75, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Logo styling */
.ptr-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(1.2);
}

/* Spinning animation when refreshing */
.pull-to-refresh-indicator.refreshing .ptr-logo {
    animation: ptr-spin 1s linear infinite;
}

/* Pulsing animation when ready to refresh */
.pull-to-refresh-indicator.ready .ptr-logo {
    animation: ptr-pulse 0.6s ease-in-out infinite;
}

/* Progress ring around the logo */
.ptr-progress-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 86px;
    height: 86px;
    transform: rotate(-90deg);
}

.ptr-progress-circle {
    fill: none;
    stroke: var(--brand-blue);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    /* 2 * PI * 40 */
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 0.2s ease;
    filter: drop-shadow(0 0 8px rgba(34, 75, 255, 0.6));
}

.pull-to-refresh-indicator.ready .ptr-progress-circle {
    stroke: #25D366;
    filter: drop-shadow(0 0 12px rgba(37, 211, 102, 0.8));
}

/* Refreshing state - full circle with pulsing glow */
.pull-to-refresh-indicator.refreshing .ptr-progress-circle {
    stroke-dashoffset: 0;
    animation: ptr-glow 1.5s ease-in-out infinite;
}

/* Status text below the indicator */
.ptr-status-text {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pull-to-refresh-indicator.visible .ptr-status-text,
.pull-to-refresh-indicator.refreshing .ptr-status-text {
    opacity: 1;
}

/* Keyframe Animations */
@keyframes ptr-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes ptr-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes ptr-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(34, 75, 255, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 16px rgba(34, 75, 255, 1));
    }
}

/* Disable pull-to-refresh on desktop */
@media (min-width: 769px) {
    .pull-to-refresh-indicator {
        display: none;
    }
}

/* ========================================
   RIPPLE EFFECT STYLES
   ======================================== */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

/* Adjust ripple color for outline buttons (blue text) */
.btn-outline-primary .ripple-effect {
    background-color: rgba(34, 75, 255, 0.3);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Ensure relative positioning for ripple container */
.btn-primary,
.btn-outline-primary,
.footer-cta-btn,
.sticky-nav-item {
    position: relative;
    overflow: hidden;
}

/* ========================================
   GRID GALLERY SYSTEM
   ======================================== */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-flow: dense;
    gap: 2rem;
    align-items: start;
}

.grid-span-wide {
    grid-column: span 2;
}

.grid-span-tall {
    grid-row: span 2;
}

@media (max-width: 991px) {
    .grid-span-wide {
        grid-column: span 1;
    }
}

/* Empty State Handling */
.grid-gallery:has(> .empty-state-message),
.grid-gallery:empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Single Item Behavior: Expand or Centered */
.grid-gallery>*:only-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin-inline: auto;
    width: 100%;
}

.empty-state-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-light);
    width: 100%;
}

/* ========================================
   STRETCHED LINK UTILITY
   ======================================== */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Ensure container is relative if using separate utility, 
   though .portfolio-card has it natively locally */
.position-relative {
    position: relative !important;
}

/* ========================================
   INTERACTIVE REVEAL TILES
   ======================================== */
.reveal-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 3/4;
    /* Portrait for services, usually looks good */
    isolation: isolate;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.4s ease, transform 0.4s ease;
}

/* Dynamic Border Glow (Expert Implementation) */
.reveal-tile::after {
    content: "";
    position: absolute;
    inset: -1px; /* Precise alignment with the container border */
    border-radius: inherit;
    padding: 1.5px; /* The 'width' of our virtual light-reactive frame */
    background: radial-gradient(
        600px circle at var(--mouse-x-px, -2000px) var(--mouse-y-px, -2000px),
        rgba(34, 75, 255, 1) 0%,
        rgba(34, 75, 255, 0.4) 15%,
        rgba(34, 75, 255, 0.1) 40%,
        transparent 80%
    );
    /* Expert mask: XOR content and padding to isolate only the border region */
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
    opacity: 1; /* Always ready to react to mouse coordinates */
    transition: opacity 0.5s ease;
}

.reveal-tile:hover {
    border-color: rgba(34, 75, 255, 0.4);
    transform: translateY(-5px); /* Premium lift effect */
}

.reveal-tile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.reveal-tile-lens {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(rgba(2, 0, 36, 0.4), rgba(2, 0, 36, 0.4)), var(--brand-blue);
    mix-blend-mode: color;
    opacity: 0.95;
    pointer-events: none;
    transition: opacity 0.4s ease;
    mask-image: radial-gradient(circle at -100% -100%, transparent 180px, black 200px);
    -webkit-mask-image: radial-gradient(circle at -100% -100%, transparent 180px, black 200px);
}

.reveal-tile:hover .reveal-tile-lens {
    opacity: 1;
    mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 180px, black 200px);
    -webkit-mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 180px, black 200px);
}

.reveal-tile:hover .reveal-tile-img {
    transform: scale(1.05);
}

.reveal-tile-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    transition: background 0.4s ease;
}

.reveal-tile-icon {
    font-size: 2rem;
    color: var(--brand-blue);
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.reveal-tile-title {
    color: #fff;
    margin-bottom: 0;
    font-size: 1.5rem;
    font-weight: 700;
    transform: translateY(10px);
    transition: transform 0.4s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.reveal-tile-desc {
    color: var(--gray-200);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
}

/* Hover State */
.reveal-tile:hover .reveal-tile-img {
    transform: scale(1.1);
}

.reveal-tile:hover .reveal-tile-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 100%);
    justify-content: center;
    /* Center content on hover? Or just keep bottom? "desliza desde abajo" usually implies keeping bottom but revealing up. */
    justify-content: flex-end;
    /* Keep at bottom, expanding up */
}

.reveal-tile:hover .reveal-tile-icon {
    opacity: 1;
    transform: translateY(0);
}

.reveal-tile:hover .reveal-tile-title {
    transform: translateY(0);
    color: var(--brand-blue);
    /* Optional accent */
}

.reveal-tile:hover .reveal-tile-desc {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
    /* Enough for short description */
    margin-top: 1rem;
}

/* ========================================
   PREMIUM BLOG & SERVICES
   ======================================== */
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-blue);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.1);
}

.blog-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-accent);
    text-transform: uppercase;
    z-index: 2;
}

.blog-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
    font-family: var(--font-accent);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fff;
    font-family: var(--font-heading);
}

.blog-title a {
    color: inherit;
    text-decoration: none;
}

.blog-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.blog-more {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-accent);
    text-transform: uppercase;
}

.reveal.active,
.reveal-text.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}