/* ═══════════════════════════════════════════════
   SemBricks — Professional Frontend + Admin Styles
   ═══════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
    --color-bg:         #ffffff;
    --color-surface:    #f8fafc;
    --color-surface-2:  #f1f5f9;
    --color-border:     #e2e8f0;
    --color-text:       #1e293b;
    --color-text-muted: #64748b;
    --color-primary:    #2563eb;
    --color-primary-dark:#1d4ed8;
    --color-primary-light:#60a5fa;
    --color-accent:     #06b6d4;
    --color-accent-2:   #8b5cf6;
    --color-navy:       #0a0e27;
    --color-navy-light: #111640;
    --color-success:    #10b981;
    --color-danger:     #ef4444;
    --color-warning:    #f59e0b;
    --font-body:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:        'JetBrains Mono', 'Fira Code', monospace;
    --shadow-sm:        0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:        0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg:        0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl:        0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-glow:      0 0 40px rgba(37,99,235,0.15);
    --radius:           8px;
    --radius-lg:        16px;
    --transition:       0.3s cubic-bezier(0.4,0,0.2,1);
    --container:        1200px;
    --header-h:         72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    width: 100%;
}


/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition), transform 0.4s ease;
}
.site-header.scrolled {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 30px rgba(0,0,0,0.2);
}
.site-header.nav-hidden {
    transform: translateY(-100%);
}

.nav-bar { padding: 0; }
.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 2rem;
}

/* Logo */
.nav-logo, .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-mark {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary-light);
    background: rgba(37,99,235,0.12);
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    line-height: 1;
}
.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}
.logo-accent { color: var(--color-primary-light); }

/* Nav Links */
.nav-collapse {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 0;
}
.nav-links li a {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
    position: relative;
}
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 1rem; right: 1rem;
    height: 2px;
    background: var(--color-primary-light);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 1px;
}
.nav-links li a:hover,
.nav-links li a.active {
    color: #fff;
}
.nav-links li a:hover::after,
.nav-links li a.active::after {
    transform: scaleX(1);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255,255,255,0.15);
}
.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 50%;
    transition: transform 0.15s, background 0.15s, opacity 0.15s;
    opacity: 0.5;
}
.lang-flag:hover { opacity: 1; transform: scale(1.12); background: rgba(255,255,255,0.1); }
.lang-flag.current { opacity: 1; }

/* CTA button in nav */
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff !important;
    background: var(--color-primary);
    border-radius: 6px;
    margin-left: 0.5rem;
    transition: background var(--transition), transform 0.15s, box-shadow var(--transition);
}
.nav-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
}
.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: background 0.2s;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: #fff;
    left: 0;
    transition: transform 0.3s ease;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger::after { transform: translateY(-7px) rotate(-45deg); }


/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}
.hero-home {
    min-height: 100vh;
    padding: calc(var(--header-h) + 3rem) 0 4rem;
}
.hero-page {
    min-height: 360px;
    padding: calc(var(--header-h) + 3rem) 0 3rem;
}

.hero-bg {
    position: absolute;
    inset: -20%;
    background: var(--color-navy);
    z-index: 0;
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(37,99,235,0.2) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139,92,246,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(6,182,212,0.08) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: auto;
}
.hero-particles canvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}
.badge-dot {
    width: 6px; height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
.hero-title-page {
    font-size: clamp(2rem, 4.5vw, 3rem);
}
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.7);
    max-width: 640px;
    margin: 0 auto 2rem;
    font-weight: 400;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.hero-breadcrumb a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.hero-breadcrumb a:hover { color: #fff; }
.hero-breadcrumb span { color: var(--color-primary-light); }

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.scroll-indicator {
    width: 20px; height: 32px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    position: relative;
}
.scroll-dot {
    width: 3px; height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 2s infinite;
}
@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}


/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */

.btn-primary-lg,
.btn-outline-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}
.btn-primary-lg {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary-lg:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,99,235,0.3);
    color: #fff;
}
.btn-outline-lg {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.btn-outline-lg:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
    color: #fff;
}


/* ══════════════════════════════════════
   CONTENT SECTIONS (used in body HTML)
   ══════════════════════════════════════ */

.content-section {
    padding: clamp(3rem, 6vw, 6rem) 0;
}

/* Section with dark bg */
.section-dark {
    background: var(--color-navy);
    color: #fff;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }
.section-dark .card { background: var(--color-navy-light); border-color: rgba(255,255,255,0.08); }
.section-dark .card-title { color: #fff; }
.section-dark .card-text { color: rgba(255,255,255,0.65); }

.section-gray { background: var(--color-surface); }

.section-header {
    text-align: center;
    max-width: 700px;
    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(--color-primary);
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.card-icon {
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(6,182,212,0.1));
    color: var(--color-primary);
}
.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}
.card-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    transition: gap var(--transition);
}
.card-link:hover { gap: 0.6rem; }

/* Feature Row (alternating image + text) */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding: clamp(2rem, 4vw, 4rem) 0;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.feature-image:hover img { transform: scale(1.04); }
.feature-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 50%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    font-family: var(--font-mono);
    font-size: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.feature-content { }
.feature-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}
.feature-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.feature-text {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}
.feature-list li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
}
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* Stats / Counter Row */
.stats-section {
    padding: clamp(3rem, 5vw, 5rem) 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-item { }
.stat-number {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--color-primary-light);
    line-height: 1.1;
    margin-bottom: 0.3rem;
}
.section-dark .stat-number { color: var(--color-primary-light); }
.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* Parallax Banner */
.parallax-banner {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center 50%;
    background-attachment: fixed;
}
.parallax-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,14,39,0.85), rgba(37,99,235,0.6));
}
.parallax-banner .container { position: relative; z-index: 1; }
.parallax-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.parallax-text {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Image Slider / Carousel */
.slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-slide {
    min-width: 100%;
    position: relative;
}
.slider-slide img {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
}
.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,14,39,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.5rem, 3vw, 3rem);
    color: #fff;
}
.slider-overlay h3 {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.slider-overlay p {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    max-width: 500px;
}
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 3;
}
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,0.3); }
.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}
.slider-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Testimonial Card */
.testimonial {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
}
.testimonial-quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.testimonial-quote::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--color-primary-light);
    line-height: 0;
    vertical-align: -0.5em;
    margin-right: 0.15em;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--color-text-muted); }

/* CTA Section */
.cta-section {
    padding: clamp(4rem, 6vw, 7rem) 0;
    text-align: center;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 40%, var(--color-primary-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.15), transparent 70%);
    pointer-events: none;
}
.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.cta-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 550px;
    margin: 0 auto 2rem;
}

/* Tech / Logo strip */
.tech-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 4vw, 4rem);
    flex-wrap: wrap;
    padding: 2rem 0;
    opacity: 0.5;
}
.tech-strip span {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Article Content (regular pages) */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 4rem) 0;
}
.article-content h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
.article-content h2 { font-size: 1.75rem; font-weight: 700; margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
.article-content h3 { font-size: 1.35rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.article-content p { margin-bottom: 1.25rem; color: var(--color-text); line-height: 1.8; }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.35rem; line-height: 1.7; }
.article-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--color-surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--color-text-muted);
    font-style: italic;
}
.article-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-surface-2);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}
.article-content pre {
    background: var(--color-navy);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 2rem 0;
}
.article-content pre code { background: none; padding: 0; color: inherit; }
.article-content img {
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}
.article-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--color-primary-dark); }


/* ══════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════ */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.revealed { opacity: 1; transform: translateY(0); }

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-left.revealed { opacity: 1; transform: translateX(0); }

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-right.revealed { opacity: 1; transform: translateX(0); }

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}
.fade-in.revealed { opacity: 1; }


/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */

.site-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.75);
    position: relative;
}
.footer-wave {
    color: var(--color-navy);
    margin-bottom: -1px;
    line-height: 0;
}
.footer-wave svg {
    width: 100%;
    height: 80px;
}

.footer-main {
    padding: 4rem 0 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
}
.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    color: rgba(255,255,255,0.55);
}
.footer-social {
    display: flex;
    gap: 0.75rem;
}
.social-link {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
}
.social-link:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-links-col h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}
.footer-links-col ul { list-style: none; }
.footer-links-col li { margin-bottom: 0.6rem; }
.footer-links-col a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: color 0.2s, padding-left 0.2s;
}
.footer-links-col a:hover {
    color: #fff;
    padding-left: 4px;
}
.footer-logo .logo-text { font-size: 1.5rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}
.footer-legal {
    display: flex;
    gap: 1.5rem;
}
.footer-legal a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }


/* ══════════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════════ */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    z-index: 100;
    pointer-events: none;
}
.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-top:hover { background: var(--color-primary-dark); }


/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
    .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .feature-row { grid-template-columns: 1fr; gap: 2rem; }
    .feature-row.reverse { direction: ltr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .nav-toggle { display: block; }
    .nav-collapse {
        position: fixed;
        top: 0; right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--color-navy);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        overflow-y: auto;
        gap: 1rem;
    }
    .nav-collapse.open { transform: translateX(0); }
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    .nav-links li a {
        padding: 0.75rem 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links li a::after { display: none; }
    .lang-switcher {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        padding-top: 0.5rem;
    }
    .nav-cta {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .hero-home { min-height: 90vh; }

    .card-grid-3, .card-grid-4, .card-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }

    .slider-prev, .slider-next { width: 36px; height: 36px; }

    .parallax-banner { background-attachment: scroll; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-primary-lg, .btn-outline-lg { justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}


/* ══════════════════════════════════════
   ADMIN STYLES (preserved)
   ══════════════════════════════════════ */

.admin-login {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.admin-login h1 { margin-bottom: 1.5rem; }
.admin-nav { background: #16213e !important; }

.admin-dashboard { padding: 1rem 0; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.admin-table th, .admin-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #eee; }
.admin-table th { background: #f8f9fa; font-weight: 600; }

.lang-badge {
    background: #4361ee;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 500; }
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}
.form-group textarea { resize: vertical; }
.form-actions { margin-top: 1.5rem; display: flex; gap: 0.5rem; }

.inline-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.inline-form input, .inline-form select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    background: #fff;
    color: #333;
    font-family: inherit;
}
.btn-primary { background: #4361ee; color: #fff; border-color: #4361ee; }
.btn-primary:hover { background: #3a56d4; }
.btn-danger { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.btn-small { padding: 0.25rem 0.6rem; font-size: 0.8rem; }

.alert { padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.alert.error { background: #fde8e8; color: #c53030; border: 1px solid #fca5a5; }
.alert.success { background: #e8fde8; color: #2f855a; border: 1px solid #9ae6b4; }

.tabs { display: flex; gap: 0; margin-bottom: 0; border-bottom: 2px solid #ddd; }
.tab-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: #666;
}
.tab-btn.active { border-bottom-color: #4361ee; color: #4361ee; font-weight: 600; }
.tab-content { display: none; padding-top: 1.5rem; }
.tab-content.active { display: block; }

@media (max-width: 768px) {
    .admin-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .admin-table { font-size: 0.85rem; }
    .inline-form { flex-direction: column; align-items: stretch; }
}

/* Contact Form */
.contact-wrapper { max-width: 720px; margin: 0 auto; }
.contact-intro { text-align: center; margin-bottom: 2.5rem; }
.contact-intro h2 { font-size: 1.75rem; font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; }
.contact-intro p { color: #64748b; font-size: 1.05rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .contact-row { grid-template-columns: 1fr; } }
.contact-field { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-field label { font-size: 0.875rem; font-weight: 600; color: #334155; }
.contact-field input,
.contact-field textarea { padding: 0.75rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 0.95rem; font-family: inherit; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; color: #0f172a; }
.contact-field input:focus,
.contact-field textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.contact-field textarea { resize: vertical; min-height: 120px; }
.contact-success { text-align: center; padding: 3rem 1rem; }
.contact-success svg { color: #22c55e; margin-bottom: 1rem; }
.contact-success h2 { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; }
.contact-success p { color: #64748b; margin-bottom: 1.5rem; }
.contact-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
