/* MR Tex — Premium Dark Theme Design System v2.0 */
/* Atmospheric Industrial Elegance */

/* ════════════════════════════════════════════════════
   FOUNDATIONS: Fonts, Variables, Reset
   ════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* ── Core Palette (derived from existing brand) ── */
    --brand-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --brand-purple: #667eea;
    --brand-violet: #764ba2;
    --accent-blue: #60a5fa;
    --accent-blue-hover: #93c5fd;
    --success-green: #22c55e;
    --whatsapp-green: #25d366;
    --whatsapp-dark: #128c7e;
    --warning: #f59e0b;
    --error: #ef4444;

    /* ── Surface System (elevation hierarchy) ── */
    --bg-deep: #0a0a1a;
    --bg-base: #0f0f23;
    --bg-raised: #161630;
    --bg-card: rgba(15, 15, 35, 0.6);
    --bg-card-hover: rgba(20, 20, 45, 0.8);
    --bg-glass: rgba(15, 15, 35, 0.85);
    --bg-overlay: rgba(0, 0, 0, 0.95);

    /* ── Text System ── */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* ── Border & Glow ── */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(102, 126, 234, 0.3);
    --glow-purple: rgba(102, 126, 234, 0.15);
    --glow-purple-strong: rgba(102, 126, 234, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 20px 60px rgba(102, 126, 234, 0.15);
    --shadow-elevated: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    /* ── Typography ── */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* ── Spacing ── */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* ── Radii ── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* ── Transitions ── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;

    /* ── Layout ── */
    --container-max: 1400px;
    --header-height: 80px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--bg-base);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(118, 75, 162, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--duration-normal) var(--ease-in-out);
}

a:hover {
    color: var(--accent-blue-hover);
}

/* Touch improvements */
* {
    -webkit-tap-highlight-color: transparent;
}

a,
button,
[role="button"] {
    touch-action: manipulation;
}


/* ════════════════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════════════════ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 600;
    color: var(--accent-blue);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 600;
}

p {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    text-align: center;
}

.section-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-purple);
    margin-bottom: var(--space-sm);
    display: block;
}


/* ════════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════════ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-alt {
    background: rgba(10, 10, 26, 0.4);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
}

/* Grid system */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: var(--space-2xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: var(--space-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--space-xl);
}


/* ════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ════════════════════════════════════════════════════ */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--duration-normal) var(--ease-in-out);
}

header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    z-index: 101;
}

.logo img {
    height: 48px;
    width: auto;
    transition: transform var(--duration-normal) var(--ease-out);
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

nav a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-in-out);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
    transition: width var(--duration-normal) var(--ease-out);
}

nav a:hover,
nav a.active {
    color: var(--text-primary);
}

nav a:hover::after,
nav a.active::after {
    width: 60%;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 101;
    align-items: center;
    justify-content: center;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all var(--duration-normal) var(--ease-out);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--duration-normal) var(--ease-out);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-glass);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: var(--space-3xl);
        gap: var(--space-sm);
        transform: translateX(100%);
        transition: transform var(--duration-slow) var(--ease-out);
        overflow-y: auto;
    }

    nav ul.active {
        transform: translateX(0);
    }

    nav a {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        width: 80%;
        max-width: 300px;
        text-align: center;
        border-radius: var(--radius-md);
    }

    nav a:hover,
    nav a.active {
        background: rgba(102, 126, 234, 0.1);
    }

    nav a::after {
        display: none;
    }
}


/* ════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    margin-bottom: var(--space-lg);
    font-size: clamp(2.8rem, 6vw, 5rem);
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Particle canvas (hero background) */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Page hero (subpages) */
.page-hero {
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-3xl);
    text-align: center;
    position: relative;
}

.page-hero h1 {
    margin-bottom: var(--space-md);
}

.page-hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
}


/* ════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--brand-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    color: var(--text-primary);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left var(--duration-slow) var(--ease-out);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(102, 126, 234, 0.08);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    color: var(--text-primary);
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.9rem;
}


/* ════════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════════ */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-2xl);
    transition: all var(--duration-normal) var(--ease-in-out);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--brand-purple);
    font-size: 1.5rem;
    transition: all var(--duration-normal) var(--ease-out);
}

.card:hover .card-icon {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.card h3 {
    margin-bottom: var(--space-md);
}

.card p {
    color: var(--text-body);
    margin-bottom: 0;
}


/* ════════════════════════════════════════════════════
   BRAND LOGOS
   ════════════════════════════════════════════════════ */

.brand-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-lg);
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    transition: all var(--duration-normal) var(--ease-in-out);
}

.brand-logo:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px var(--glow-purple);
}

.brand-logo img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    filter: brightness(1.1) contrast(1.1);
    transition: filter var(--duration-normal) var(--ease-in-out);
}

.brand-logo:hover img {
    filter: brightness(1.3) contrast(1.2);
}


/* ════════════════════════════════════════════════════
   PORTFOLIO GALLERY
   ════════════════════════════════════════════════════ */

.portfolio-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.tab-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-in-out);
    min-height: 44px;
    user-select: none;
    -webkit-user-select: none;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--brand-gradient);
    border-color: rgba(102, 126, 234, 0.5);
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--glow-purple-strong);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: var(--space-xl);
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-default);
    transition: all 0.4s var(--ease-in-out);
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-hover);
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: var(--bg-raised);
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7), rgba(118, 75, 162, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-in-out);
    cursor: pointer;
}

.portfolio-item:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 2.5rem;
    color: var(--text-primary);
    transform: scale(0.8);
    transition: transform var(--duration-normal) var(--ease-out);
}

.portfolio-item:hover .image-overlay i {
    transform: scale(1);
}

.portfolio-content {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
}

.portfolio-details {
    flex: 1;
    margin-bottom: var(--space-lg);
}

.portfolio-details p {
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    line-height: 1.6;
}

.portfolio-details strong {
    color: var(--accent-blue);
    font-weight: 600;
}


/* ════════════════════════════════════════════════════
   PRODUCT CARDS
   ════════════════════════════════════════════════════ */

.product-performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--space-xl);
}

.performance-item {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--border-default);
    transition: all var(--duration-normal) var(--ease-in-out);
    text-align: center;
}

.performance-item:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.performance-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.performance-item:hover .performance-icon {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.performance-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--brand-purple);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.performance-item h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.performance-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--space-xl);
}

.product-item {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-default);
    transition: all 0.4s var(--ease-in-out);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-hover);
}

.product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--duration-normal) var(--ease-out);
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-item h3 {
    padding: var(--space-lg);
    font-size: 1.15rem;
    margin: 0;
}


/* ════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════ */

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--space-xl);
}

.contact-item {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    transition: all var(--duration-normal) var(--ease-in-out);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-hover);
}

.contact-item .icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 1.4rem;
    color: var(--brand-purple);
}

.contact-item h3 {
    color: var(--accent-blue);
    margin-bottom: var(--space-md);
    font-size: 1.3rem;
}

.contact-item a {
    color: var(--accent-blue);
    font-weight: 500;
    transition: color var(--duration-normal) var(--ease-in-out);
}

.contact-item a:hover {
    color: var(--accent-blue-hover);
}

.contact-item p {
    color: var(--text-body);
}


/* ════════════════════════════════════════════════════
   FOOTER — Premium Redesign
   ════════════════════════════════════════════════════ */

.site-footer {
    background: linear-gradient(180deg, #0d0d22 0%, #080816 100%);
    color: var(--text-secondary);
    padding: calc(var(--space-4xl) + 40px) 0 0;
    margin-top: var(--space-4xl);
    border-top: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

/* Decorative radial glow behind footer content */
.footer-glow {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center,
            rgba(102, 126, 234, 0.08) 0%,
            rgba(118, 75, 162, 0.05) 40%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.footer-wave .shape-fill {
    fill: var(--bg-base);
}

/* Main footer grid — 4 columns: brand wider, rest equal */
.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: var(--space-2xl) var(--space-3xl);
    padding: 0 0 var(--space-3xl);
    position: relative;
    z-index: 1;
}

/* ── Brand column ── */
.footer-brand-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    text-decoration: none;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 260px;
}

/* ── Section heading ── */
.footer-heading {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
}

/* ── Link lists ── */
.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 0.55rem;
}

.footer-links-list a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all var(--duration-normal) var(--ease-in-out);
    text-decoration: none;
    min-height: 32px;
}

.footer-links-list a i {
    font-size: 0.65rem;
    color: var(--brand-purple);
    opacity: 0.6;
    transition: all var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
}

.footer-links-list a:hover {
    color: var(--accent-blue);
    transform: translateX(4px);
}

.footer-links-list a:hover i {
    opacity: 1;
    color: var(--accent-blue);
}

/* ── Contact list ── */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.footer-contact-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-purple);
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-display);
}

.footer-contact-text a,
.footer-contact-text span {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    transition: color var(--duration-normal) var(--ease-in-out);
    text-decoration: none;
}

.footer-contact-text a:hover {
    color: var(--accent-blue);
}

/* ── Divider ── */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--border-subtle) 20%,
            rgba(102, 126, 234, 0.2) 50%,
            var(--border-subtle) 80%,
            transparent 100%);
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

/* ── Bottom bar ── */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-lg) 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-bottom-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color var(--duration-normal) var(--ease-in-out);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer-bottom-links a:hover {
    color: var(--accent-blue);
}

.footer-dot {
    color: var(--text-dim);
    opacity: 0.4;
    font-size: 1rem;
    line-height: 1;
}

/* ── Back to Top button ── */
.back-to-top {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid var(--border-hover);
    border-radius: 50%;
    color: var(--brand-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 998;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: all var(--duration-normal) var(--ease-out);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: var(--brand-purple);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}


/* ════════════════════════════════════════════════════
   WHATSAPP FLOAT
   ════════════════════════════════════════════════════ */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--whatsapp-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 999;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.1);
    color: white;
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* ════════════════════════════════════════════════════
   IMAGE MODAL
   ════════════════════════════════════════════════════ */

.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--duration-normal) var(--ease-out);
}

.image-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    animation: zoomIn var(--duration-normal) var(--ease-out);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-out);
    border: none;
    z-index: 2001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}


/* ════════════════════════════════════════════════════
   404 PAGE
   ════════════════════════════════════════════════════ */

.error-page {
    text-align: center;
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-page h1 {
    font-size: clamp(5rem, 15vw, 10rem);
    margin-bottom: var(--space-md);
}

.error-page h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.error-page p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}


/* ════════════════════════════════════════════════════
   BLOG STYLES
   ════════════════════════════════════════════════════ */

/* Blog archive */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: var(--space-xl);
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-default);
    transition: all 0.4s var(--ease-in-out);
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-hover);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-body {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-dim);
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--brand-purple);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-display);
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    transition: color var(--duration-normal) var(--ease-in-out);
}

.blog-card:hover h3 {
    color: var(--accent-blue);
}

.blog-card-excerpt {
    color: var(--text-body);
    font-size: 0.95rem;
    flex: 1;
    line-height: 1.7;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
}

.read-more {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-purple);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.blog-card:hover .read-more {
    color: var(--accent-blue);
}

/* Blog single post */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--brand-gradient);
    z-index: 1001;
    transition: width 100ms linear;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.post-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    margin-top: var(--header-height);
}

.post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-base) 0%, rgba(15, 15, 35, 0.4) 50%, rgba(15, 15, 35, 0.2) 100%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-3xl) var(--space-xl);
}

.post-hero-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.post-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--space-lg);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
    align-items: center;
}

.post-meta i {
    margin-right: var(--space-xs);
}

.post-body {
    max-width: 750px;
    margin: var(--space-3xl) auto;
    padding: 0 var(--space-xl);
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.post-body h2 {
    font-size: 1.8rem;
    margin: var(--space-3xl) 0 var(--space-lg);
}

.post-body h3 {
    font-size: 1.4rem;
    margin: var(--space-2xl) 0 var(--space-md);
}

.post-body p {
    margin-bottom: var(--space-lg);
}

.post-body p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 0 var(--space-sm) 0 0;
    color: var(--brand-purple);
}

.post-body blockquote {
    border-left: 3px solid var(--brand-purple);
    margin: var(--space-2xl) 0;
    padding: var(--space-lg) var(--space-xl);
    background: rgba(102, 126, 234, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-body img {
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) 0;
}

.post-body ul,
.post-body ol {
    margin: var(--space-lg) 0;
    padding-left: var(--space-xl);
}

.post-body li {
    margin-bottom: var(--space-sm);
}

.post-body code {
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

.post-body pre {
    background: var(--bg-raised);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--space-2xl) 0;
    border: 1px solid var(--border-default);
}

.post-body pre code {
    background: none;
    padding: 0;
}

/* Social sharing */
.post-share {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 750px;
    margin: var(--space-2xl) auto;
    padding: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.post-share span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    font-size: 1rem;
}

.share-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Related posts */
.related-posts {
    max-width: 1200px;
    margin: var(--space-3xl) auto;
    padding: 0 var(--space-xl);
}

.related-posts h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
}

.pagination a,
.pagination span {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--duration-normal) var(--ease-in-out);
}

.pagination a {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    text-decoration: none;
}

.pagination a:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.1);
}

.pagination .current {
    background: var(--brand-gradient);
    color: var(--text-primary);
}


/* ════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ════════════════════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s var(--ease-out);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s var(--ease-out);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s var(--ease-out);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-out);
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 100ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 200ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 300ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 400ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 500ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(n+7) {
    transition-delay: 600ms;
    opacity: 1;
    transform: translateY(0);
}


/* ════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════ */

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    background: var(--brand-gradient);
    color: var(--text-primary);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 500;
    -webkit-text-fill-color: var(--text-primary);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.disclaimer-text {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-style: italic;
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    border-left: 3px solid var(--border-default);
    background: rgba(15, 15, 35, 0.3);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Maintenance banner */
.maintenance-banner {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
}

.maintenance-banner h1 {
    margin-bottom: var(--space-lg);
}

.maintenance-banner p {
    color: var(--text-muted);
    max-width: 500px;
}


/* ════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    :root {
        --header-height: 72px;
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .container {
        padding: 0 var(--space-lg);
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-2xl)) var(--space-md) var(--space-2xl);
    }

    /* Tablet: footer 2×2 grid */
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .post-hero {
        height: 50vh;
        min-height: 300px;
    }

    .back-to-top {
        bottom: 84px;
        right: 16px;
    }
}

@media (max-width: 767px) {
    :root {
        --header-height: 64px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .brand-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .brand-logo {
        padding: var(--space-md);
    }

    .brand-logo img {
        max-height: 50px;
    }

    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-image-wrapper {
        height: 220px;
    }

    /* Footer responsive — mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-links-list a:hover {
        transform: none;
    }

    .footer-contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .footer-bottom-links {
        justify-content: flex-start;
    }

    .footer-wave svg {
        height: 50px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 16px;
        right: 16px;
    }

    .post-hero {
        height: 40vh;
        min-height: 280px;
    }

    .post-body {
        font-size: 1rem;
        padding: 0 var(--space-md);
    }

    .post-share {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .brand-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        width: 100%;
        min-width: auto;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-wave svg {
        height: 40px;
    }
}

/* Ultra-small devices: Galaxy Fold, iPhone SE (< 400px) */
@media (max-width: 400px) {
    :root {
        --header-height: 60px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    /* Disable drop-cap on tiny phones — it breaks layout */
    .post-body p:first-of-type::first-letter {
        float: none;
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
        margin: 0;
        color: inherit;
    }

    .brand-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .footer-social {
        justify-content: center;
    }

    .back-to-top {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }

    .whatsapp-float {
        width: 46px;
        height: 46px;
        font-size: 20px;
        bottom: 12px;
        right: 12px;
    }
}

/* ════════════════════════════════════════════════════
   PRINT STYLES
   ════════════════════════════════════════════════════ */

@media print {
    body {
        background: white;
        color: #333;
    }

    header,
    footer,
    .whatsapp-float,
    .reading-progress,
    .post-share,
    .related-posts,
    .hero-actions,
    .btn {
        display: none !important;
    }

    h1,
    h2,
    h3 {
        color: #1a1a2e;
        -webkit-text-fill-color: #1a1a2e;
        background: none;
    }

    .post-body {
        max-width: 100%;
        padding: 0;
        font-size: 12pt;
    }

    a {
        color: #333;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}