/* ==========================================================
   RAGMON THEME v2.0 — Premium Dark Design
   ========================================================== */

:root {
    --bg-void:       #030712;
    --bg-primary:    #0f172a;
    --bg-elevated:   #1e293b;
    --bg-card:       rgba(30, 41, 59, 0.55);
    --bg-card-hover: rgba(51, 65, 85, 0.45);
    --border:        rgba(148, 163, 184, 0.1);
    --border-vivid:  rgba(148, 163, 184, 0.2);
    --text-primary:  #f1f5f9;
    --text-secondary:#94a3b8;
    --text-muted:    #64748b;
    --accent:        #818cf8;
    --accent-vivid:  #6366f1;
    --cyan:          #22d3ee;
    --gradient:      linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    --white:         #ffffff;
    --radius-sm:     0.5rem;
    --radius-md:     0.75rem;
    --radius-lg:     1rem;
    --radius-xl:     1.5rem;
    --font-heading:  'Plus Jakarta Sans', sans-serif;
    --font-body:     'Inter', sans-serif;
    --font-code:     'JetBrains Mono', monospace;
    --shadow:        0 4px 24px rgba(0,0,0,0.35);
    --shadow-glow:   0 0 60px rgba(99,102,241,0.12);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}

a { color: var(--accent); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--cyan); }

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

::selection { background: rgba(99, 102, 241, 0.3); color: var(--white); }

/* --- Gradient text utility --- */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.ragmon-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.35s ease;
}

.ragmon-nav.nav-scrolled,
.ragmon-nav.nav-solid {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
}

/* Rahimov.dev wordmark */
.nav-logo--wordmark {
    display: inline-flex;
    gap: 0;
    align-items: baseline;
    color: var(--text-primary);
}

.nav-logo--wordmark:hover {
    color: var(--text-primary);
}

.logo-word {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--white);
}

.nav-logo--wordmark:hover .logo-word {
    color: var(--white);
}

.logo-pixel-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 1px;
    background: var(--accent-vivid);
    border-radius: 50%;
    vertical-align: 0.15em;
}

.logo-dev {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links .nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0;
    transition: color 0.25s;
    background: none;
    border: none;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: var(--text-primary);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: opacity 0.25s, transform 0.25s;
    text-decoration: none;
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); color: var(--white); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.nav-mobile.open { opacity: 1; pointer-events: all; }

.nav-mobile-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.nav-mobile-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s;
}

.nav-mobile-link:hover,
.nav-mobile-link.active { color: var(--text-primary); }

.nav-mobile-cta {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .nav-links,
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .logo-word,
    .logo-dev { font-size: 1.05rem; }
    .logo-pixel-dot { width: 4px; height: 4px; vertical-align: 0.12em; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-void);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 12s ease-in-out infinite;
}

.hero-orb--1 {
    width: 500px; height: 500px;
    background: var(--accent-vivid);
    top: -10%; left: 10%;
    opacity: 0.15;
}

.hero-orb--2 {
    width: 400px; height: 400px;
    background: var(--cyan);
    bottom: -5%; right: 5%;
    opacity: 0.1;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(30px, -20px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 100px;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- Buttons --- */
.btn-ragmon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-ragmon--primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.btn-ragmon--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
    color: var(--white);
}

.btn-ragmon--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-vivid);
}

.btn-ragmon--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-ragmon--sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
}

/* --- Terminal --- */
.terminal {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-vivid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow), var(--shadow-glow);
    backdrop-filter: blur(12px);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 6px; }

.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}

.dot--red    { background: #ef4444; }
.dot--yellow { background: #eab308; }
.dot--green  { background: #22c55e; }

.terminal-title {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.25rem 1.25rem;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: #abb2bf;
    min-height: 280px;
    white-space: pre-wrap;
    line-height: 1.8;
}

.terminal-cursor {
    display: inline-block;
    width: 9px;
    background: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

.tk-kw  { color: #c678dd; }
.tk-fn  { color: #61afef; }
.tk-var { color: #e5c07b; }
.tk-str { color: #98c379; }
.tk-cm  { color: #5c6370; font-style: italic; }
.tk-num { color: #d19a66; }

/* ==========================================================
   METRICS BAR
   ========================================================== */
.metrics {
    padding: 4rem 0;
    background: var(--bg-void);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 2rem;
    text-align: center;
    align-items: start;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

/* Keeps number and + on one line (was breaking because .metric-value was display:block) */
.metric-stat {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.08em;
    line-height: 1;
}

.metric-stat--text {
    max-width: 100%;
}

.metric-value {
    display: inline;
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-value--text {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    line-height: 1.15;
    white-space: normal;
}

.metric-plus {
    display: inline;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.metric-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.35;
    max-width: 12rem;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .metrics { padding: 3rem 0; }
    .metrics-grid { gap: 1.75rem 1rem; }
    .metric-value--text { font-size: clamp(1.2rem, 4vw, 1.5rem); }
}

/* ==========================================================
   PARTNERS
   ========================================================== */
.partners {
    padding: 2.25rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.partners-label {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.partners-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.partner-item {
    display: inline-flex;
    align-items: center;
    height: 40px;
    opacity: 0.5;
    transition: opacity 0.35s;
}

.partner-item:hover {
    opacity: 1;
}

.partner-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Some partner logos are very dark; add a subtle halo for legibility on dark UI without altering brand colors. */
.partner-img--dark {
    opacity: 0.85;
    filter: drop-shadow(0 0 6px rgba(248, 250, 252, 0.16)) drop-shadow(0 0 1px rgba(248, 250, 252, 0.2));
}

.partner-item:hover .partner-img--dark {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(248, 250, 252, 0.2)) drop-shadow(0 0 1px rgba(248, 250, 252, 0.24));
}

@media (max-width: 575.98px) {
    .partners-strip { gap: 2rem; }
    .partner-item { height: 32px; }
}

/* ==========================================================
   SECTIONS — General
   ========================================================== */
.section {
    padding: 6rem 0;
    overflow: hidden;
}

.section--alt {
    background: var(--bg-void);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================
   SERVICES
   ========================================================== */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all 0.35s ease;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: var(--border-vivid);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before { opacity: 1; }

.service-card--featured {
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.06);
}

.service-card--featured::before { opacity: 1; }

.service-icon-wrap {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ==========================================================
   ABOUT — 3D Tilt Card
   ========================================================== */

/* Outer scene — provides perspective context */
.about-tilt-scene {
    perspective: 1200px;
    max-width: 400px;
    margin: 0 auto;
}

/* The tilt card itself — VanillaTilt targets this */
.about-tilt-card {
    position: relative;
    border-radius: var(--radius-xl);
    transform-style: preserve-3d;
    transform: perspective(1200px);
    cursor: pointer;
    /* Subtle floating animation when not being hovered */
    animation: aboutFloat 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes aboutFloat {
    0%, 100% { transform: perspective(1200px) translateY(0px) rotateX(0deg) rotateY(0deg); }
    33%       { transform: perspective(1200px) translateY(-8px) rotateX(1.5deg) rotateY(-1deg); }
    66%       { transform: perspective(1200px) translateY(-4px) rotateX(-1deg) rotateY(1.5deg); }
}

/* Pause floating when VanillaTilt is active (hover) */
.about-tilt-card:hover {
    animation-play-state: paused;
}

/* Glowing border that reacts to tilt */
.about-tilt-glow {
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-xl) + 2px);
    background: var(--gradient);
    z-index: 0;
    opacity: 0.6;
    transition: opacity 0.4s ease;
    filter: blur(1px);
}

.about-tilt-card:hover .about-tilt-glow {
    opacity: 1;
    filter: blur(0px);
}

/* Photo layer */
.about-tilt-inner {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-elevated);
}

.about-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: var(--radius-xl);
    transform: translateZ(0);
}

/* Subtle inner shadow overlay for depth */
.about-tilt-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(
        160deg,
        rgba(255,255,255,0.04) 0%,
        transparent 40%,
        rgba(0,0,0,0.35) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Floating badge — elevated above card surface */
.about-tilt-badge {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    background: var(--gradient);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
    z-index: 10;
    transform: translateZ(40px);
    transition: transform 0.3s ease;
}

.about-badge-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.about-badge-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
    font-weight: 500;
}

/* Floating tags — pop out from card surface */
.about-tilt-tag {
    position: absolute;
    z-index: 10;
    padding: 0.4rem 0.9rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-vivid);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    transform: translateZ(30px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    pointer-events: none;
}

.about-tilt-tag--1 {
    top: 1.5rem;
    left: 1.25rem;
}

.about-tilt-tag--2 {
    top: 3.5rem;
    left: 1.25rem;
}

@media (max-width: 991.98px) {
    .about-tilt-scene { max-width: 360px; margin-bottom: 2.5rem; }
    /* Disable tilt float on mobile — handled by gyroscope instead */
    .about-tilt-card { animation: none; }
}

.section-title.text-start::after { display: none; }

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-highlight i {
    color: var(--accent);
    font-size: 0.85rem;
}

/* ==========================================================
   PORTFOLIO
   ========================================================== */
.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}

.portfolio-card:hover {
    border-color: var(--border-vivid);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.portfolio-image img:not(.portfolio-brand-logo) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img:not(.portfolio-brand-logo) {
    transform: scale(1.05);
}

.portfolio-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.portfolio-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-body p {
    font-size: 0.9rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.portfolio-tech span {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    border-radius: 100px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.25s, gap 0.25s;
}

.portfolio-link:hover { color: var(--accent); gap: 0.6rem; }

.portfolio-link i { font-size: 0.7rem; }

/* Featured portfolio card (HorecaHub) */
.portfolio-card--featured {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card--featured .portfolio-body { flex: 1; }

.portfolio-image--tall {
    min-height: 180px;
}

.portfolio-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    gap: 0.4rem;
}

.portfolio-image--branded {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-image--horecahub {
    background: linear-gradient(135deg, #0a2e1f 0%, #0f172a 100%);
}

.portfolio-image--agyn {
    background: linear-gradient(135deg, #0f172a 0%, #1a103a 100%);
}

.portfolio-brand-logo {
    max-width: 55%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    filter: brightness(0.9);
    transition: opacity 0.3s, filter 0.3s;
}

.portfolio-card--featured:hover .portfolio-brand-logo {
    opacity: 1;
    filter: brightness(1);
}

.portfolio-placeholder-brand {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.portfolio-placeholder-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.portfolio-tag-inline {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    background: rgba(56, 189, 248, 0.08);
    color: var(--cyan);
    border-radius: var(--radius-sm);
    margin-bottom: 0.65rem;
}

/* ==========================================================
   TECH STACK
   ========================================================== */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stack-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.stack-group:hover { border-color: var(--border-vivid); }

.stack-group-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stack-item {
    font-size: 0.825rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.25s;
}

.stack-item:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
}

@media (max-width: 1199.98px) {
    .stack-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
    .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .stack-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   BLOG CARDS (homepage preview & listing)
   ========================================================== */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}

.blog-card:hover {
    border-color: var(--border-vivid);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.blog-card-image-link {
    display: block;
    overflow: hidden;
    height: 210px;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img { transform: scale(1.05); }

.blog-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-vivid), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
}

.blog-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.blog-card-title a { color: var(--text-primary); text-decoration: none; }
.blog-card-title a:hover { color: var(--accent); }

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.blog-meta i { color: var(--accent); margin-right: 0.2rem; }

.blog-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0;
}

/* ==========================================================
   CTA / CONTACT SECTION
   ========================================================== */
.cta-box {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    overflow: hidden;
    text-align: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.cta-orb--1 {
    width: 300px; height: 300px;
    background: var(--accent-vivid);
    opacity: 0.12;
    top: -20%; left: -5%;
}

.cta-orb--2 {
    width: 250px; height: 250px;
    background: var(--cyan);
    opacity: 0.08;
    bottom: -15%; right: -5%;
}

.cta-content {
    position: relative;
    margin-bottom: 2.5rem;
}

.cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.cta-contacts {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.cta-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(148, 163, 184, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s;
    text-align: left;
}

.cta-contact:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.06);
}

.cta-contact-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 1rem;
}

.cta-contact-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.cta-contact-value {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .cta-contacts { grid-template-columns: repeat(2, 1fr); }
    .cta-box { padding: 3rem 1.5rem; }
}

@media (max-width: 575.98px) {
    .cta-contacts { grid-template-columns: 1fr; }
}

.cta-actions {
    margin-bottom: 2rem;
}

.btn-ragmon--lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    gap: 0.6rem;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.ragmon-footer {
    background: var(--bg-void);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.25s;
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--text-primary); }

/* Trust / GDPR row */
.footer-trust {
    padding: 1.75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
}

.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(148, 163, 184, 0.03);
}

.trust-badge > i {
    font-size: 1.05rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.trust-badge--gdpr > i {
    color: var(--accent);
}

.trust-badge-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.trust-badge-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    line-height: 1;
}

.trust-in-progress {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    padding: 0.1rem 0.4rem;
    vertical-align: middle;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-legal a:hover { color: var(--text-primary); }

@media (max-width: 991.98px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575.98px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ==========================================================
   SCROLL-TO-TOP
   ========================================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px; height: 44px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-vivid);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 90;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.scroll-top:hover {
    background: var(--accent-vivid);
    color: var(--white);
    border-color: var(--accent-vivid);
}

@media (max-width: 575.98px) {
    .scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================
   BLOG LIST PAGE (home.php, index.php)
   ========================================================== */
.blog-page-header {
    padding: 8rem 0 3rem;
    background: var(--bg-void);
    text-align: center;
}

.blog-page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.blog-page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.blog-list-section {
    padding: 3rem 0 6rem;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 3rem;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.25s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--accent-vivid);
    border-color: var(--accent-vivid);
    color: var(--white);
}

/* ==========================================================
   SINGLE POST
   ========================================================== */
.single-post-header {
    padding: 8rem 0 3rem;
    background: var(--bg-void);
}

.single-post-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 0.75rem;
}

.single-post-content {
    padding: 3rem 0 5rem;
}

.post-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
}

.post-body h2, .post-body h3, .post-body h4 {
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-body p { margin-bottom: 1.5rem; }

.post-body img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.post-body a {
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.post-body a:hover { border-bottom-color: var(--accent); }

.post-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-body pre {
    background: var(--bg-void);
    border: 1px solid var(--border);
    color: #abb2bf;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: var(--font-code);
    font-size: 0.9rem;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.post-body code {
    font-family: var(--font-code);
    font-size: 0.88em;
}

.post-body p code,
.post-body li code {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.post-body ul,
.post-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-body li { margin-bottom: 0.5rem; }

/* --- Horizontal rule --- */
.post-body hr {
    border: none;
    height: 1px;
    background: var(--border-vivid);
    margin: 2.5rem 0;
}

/* --- Tables --- */
.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.post-body th,
.post-body td {
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
}

.post-body thead th {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-body tbody tr:hover {
    background: rgba(148, 163, 184, 0.04);
}

.post-body td {
    color: var(--text-secondary);
}

/* --- Figures & captions --- */
.post-body figure {
    margin: 2rem 0;
}

.post-body figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
    line-height: 1.5;
}

/* --- Definition lists --- */
.post-body dl {
    margin-bottom: 1.5rem;
}

.post-body dt {
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.post-body dd {
    margin-left: 0;
    padding-left: 1.25rem;
    border-left: 2px solid var(--border-vivid);
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* --- Mark / highlight --- */
.post-body mark {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

/* --- Keyboard keys --- */
.post-body kbd {
    font-family: var(--font-code);
    font-size: 0.82em;
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    border: 1px solid var(--border-vivid);
    box-shadow: 0 2px 0 var(--border);
}

/* --- Details / Summary (collapsible) --- */
.post-body details {
    margin-bottom: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.25s;
}

.post-body details[open] {
    border-color: var(--border-vivid);
}

.post-body details summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.25s;
}

.post-body details summary::-webkit-details-marker { display: none; }

.post-body details summary::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--accent);
    transition: transform 0.25s;
    flex-shrink: 0;
}

.post-body details[open] summary::before {
    transform: rotate(90deg);
}

.post-body details summary:hover { color: var(--accent); }

.post-body details > p,
.post-body details > div {
    padding: 0 1.25rem 1rem;
    font-size: 0.95rem;
}

/* --- Callout boxes --- */
.callout {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-size: 0.95rem;
    line-height: 1.65;
}

.callout-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.callout--info {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}
.callout--info .callout-icon { color: var(--accent); }

.callout--success {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.2);
}
.callout--success .callout-icon { color: #22c55e; }

.callout--warning {
    background: rgba(234, 179, 8, 0.06);
    border-color: rgba(234, 179, 8, 0.2);
}
.callout--warning .callout-icon { color: #eab308; }

.callout--danger {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
}
.callout--danger .callout-icon { color: #ef4444; }

/* --- Address --- */
.post-body address {
    font-style: normal;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* --- Footnotes --- */
.post-body .footnotes {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* --- Embedded content --- */
.wp-block-embed {
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.wp-block-embed iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

/* --- Demo placeholders (style guide only) --- */
.demo-hero-image {
    width: 100%;
    max-height: 450px;
    aspect-ratio: 21/9;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-void) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.demo-hero-inner i {
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.5;
}

.demo-image-placeholder,
.demo-embed-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-vivid);
    background: rgba(99, 102, 241, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.demo-image-placeholder i,
.demo-embed-placeholder i {
    font-size: 2rem;
    opacity: 0.4;
    color: var(--accent);
}

.demo-image-placeholder--small {
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 4/3;
}

.post-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.post-tags a {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.25rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.25s;
}

.post-tags a:hover {
    background: var(--accent-vivid);
    border-color: var(--accent-vivid);
    color: var(--white);
}

.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-navigation a {
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.2s;
}

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

.post-navigation .nav-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================================================
   LEGAL PAGES & GENERIC PAGE
   ========================================================== */
.page-content {
    padding: 8rem 0 5rem;
}

.page-content .content-container {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    backdrop-filter: blur(8px);
}

.page-content h1 {
    font-size: 2rem;
    font-weight: 800;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.page-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content p { margin-bottom: 1rem; line-height: 1.7; }

.page-content a { color: var(--accent); }
.page-content a:hover { text-decoration: underline; }

.page-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content li { margin-bottom: 0.4rem; }

/* ==========================================================
   404 PAGE
   ========================================================== */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-void);
    padding: 2rem;
}

.page-404-code {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.page-404 p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================
   COOKIE CONSENT BANNER
   ========================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-vivid);
    padding: 1.25rem 0;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner-inner p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    flex: 1;
    min-width: 240px;
}

.cookie-banner-inner p a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .cookie-banner-inner { flex-direction: column; text-align: center; }
    .cookie-banner-actions { width: 100%; justify-content: center; }
}

/* ==========================================================
   COOKIE TABLE (Privacy Policy page)
   ========================================================== */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.875rem;
}

.cookie-table th,
.cookie-table td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
}

.cookie-table th {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cookie-table td {
    color: var(--text-secondary);
}

.cookie-table code {
    font-family: var(--font-code);
    font-size: 0.82em;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

/* ==========================================================
   STACK LINK (StackShare CTA)
   ========================================================== */
.stack-link {
    color: var(--accent);
    font-weight: 600;
    transition: color 0.25s;
}

.stack-link:hover {
    color: var(--cyan);
}

/* ==========================================================
   RESPONSIVE POLISH
   ========================================================== */
@media (max-width: 991.98px) {
    .section { padding: 4rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .hero-title { margin-bottom: 1.25rem; }
    .about-image-wrap { margin-bottom: 2rem; }
}

@media (max-width: 767.98px) {
    .hero { padding-top: 5rem; }
    .hero .row { min-height: auto; padding: 6rem 0 3rem; }
    .section-title { font-size: 1.75rem; }
    .page-content .content-container { padding: 2rem 1.25rem; }
}

@media (max-width: 575.98px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn-ragmon { width: 100%; justify-content: center; }
    .hero-badge { font-size: 0.8rem; }
}
