/* ========================================
   CSS Variables & Reset (from moeedbuilds.dev)
   ======================================== */
:root {
    --primary: #EC006E;
    --primary-light: #ff1a8c;
    --primary-dark: #c90060;
    --primary-glow: rgba(236, 0, 110, 0.4);
    --bg-dark: #0a0a0b;
    --bg-card: #111113;
    --bg-card-hover: #161618;
    --bg-elevated: #1a1a1d;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========================================
   Utilities
   ======================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container { padding: 0 48px; }
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Announcement Bar
   ======================================== */
.announcement-bar {
    background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-elevated) 50%, var(--bg-card) 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.4s ease;
}

.announcement-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.announcement-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.85rem;
}

.announcement-left {
    display: none;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.announcement-status {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.announcement-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.announcement-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: none;
}

@media (min-width: 640px) {
    .announcement-label { display: block; }
}

.announcement-socials {
    display: flex;
    align-items: center;
    gap: 4px;
}

.announcement-socials a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.announcement-socials a:hover {
    color: var(--primary);
    background: rgba(236, 0, 110, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    transition: all 0.5s var(--ease-out-expo);
}

.nav.scrolled {
    top: 12px;
    padding: 8px 24px;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(17, 17, 19, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 8px 8px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.nav-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, var(--primary), #ff4d94, #a855f7, #3b82f6, var(--primary));
    background-size: 300% 100%;
    border-radius: 100px;
    z-index: -1;
    opacity: 0;
    animation: borderGradient 4s linear infinite;
    transition: opacity 0.4s ease;
}

.nav-wrapper:hover::before { opacity: 1; }

@keyframes borderGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.nav-wrapper::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: rgba(17, 17, 19, 0.95);
    border-radius: 100px;
    z-index: -1;
}

.nav.scrolled .nav-wrapper {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.nav-logo:hover { transform: scale(1.05); }

.nav-logo span {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { text-shadow: 0 0 20px var(--primary-glow); }
    50% { text-shadow: 0 0 30px var(--primary), 0 0 40px var(--primary-glow); }
}

.nav-links {
    display: none;
    list-style: none;
    gap: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px;
    border-radius: 100px;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 100px;
    transition: all 0.3s var(--ease-out-expo);
    text-decoration: none;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
    color: white;
    background: rgba(236, 0, 110, 0.15);
}

.nav-right { display: flex; align-items: center; gap: 8px; }

.nav-cta {
    display: none;
    align-items: center;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .nav-cta { display: flex; }
}

.nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.nav-cta i { margin-left: 6px; font-size: 0.75rem; transition: transform 0.3s ease; }
.nav-cta:hover i { transform: translateX(3px); }

/* Mobile Toggle */
.nav-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

@media (min-width: 768px) {
    .nav-mobile-toggle { display: none; }
}

.nav-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 1002;
    padding: 80px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: right 0.5s var(--ease-out-expo);
    border-left: 1px solid var(--border-subtle);
}

.mobile-menu.open { right: 0; }

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu a {
    display: block;
    padding: 14px 16px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-menu a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-socials {
    margin-top: auto;
    display: flex;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.mobile-menu-socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 0;
}

.mobile-menu-socials a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(236, 0, 110, 0.1);
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-card);
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 32px;
    }
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-brand h3 span { color: var(--primary); }

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-socials { display: flex; gap: 12px; }

.footer-socials a {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.footer-socials a::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-socials a:hover::before { opacity: 1; }

.footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-column h4 {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 12px; }

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

.footer-bottom a { color: var(--primary); }

/* ========================================
   Page Template Styles (inner pages)
   ======================================== */

/* Breadcrumbs */
.breadcrumbs {
    padding: 140px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.breadcrumbs a:hover { color: var(--primary); }

.breadcrumbs .sep { margin: 0 8px; opacity: 0.4; }

.breadcrumbs .current { color: var(--text-primary); }

/* Page Hero */
.page-hero {
    padding: 32px 0 48px;
}

@media (min-width: 768px) {
    .page-hero { padding: 48px 0 64px; }
}

.page-hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(236, 0, 110, 0.1);
    border: 1px solid rgba(236, 0, 110, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 24px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 800px;
}

.page-hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
}

/* Article Content */
.article-content {
    max-width: 760px;
    padding-bottom: 64px;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 48px 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 36px 0 12px;
    color: var(--text-primary);
}

.article-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content a {
    color: var(--primary-light);
    text-decoration: underline;
    text-decoration-color: rgba(236, 0, 110, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease;
}

.article-content a:hover {
    text-decoration-color: var(--primary);
}

.article-content ul, .article-content ol {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content code {
    background: var(--bg-elevated);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--primary-light);
    font-family: 'JetBrains Mono', monospace;
}

.article-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    margin-bottom: 24px;
    font-size: 0.88rem;
    line-height: 1.7;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: var(--text-secondary);
}

.article-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(236, 0, 110, 0.05);
    border-radius: 0 12px 12px 0;
}

.article-content blockquote p {
    color: var(--text-primary);
    font-style: italic;
    margin: 0;
}

/* Info Box */
.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 16px;
    padding: 24px;
    margin: 28px 0;
}

.info-box.warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.info-box.warning .info-box-title {
    color: #f59e0b;
}

.info-box.tip {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.info-box.tip .info-box-title {
    color: #10b981;
}

.info-box-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box p {
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
}

.info-box p:last-child {
    margin-bottom: 0 !important;
}

/* Service Page Specific */
.service-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 32px 0;
}

@media (min-width: 640px) {
    .service-features {
        grid-template-columns: 1fr 1fr;
    }
}

.service-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}

.service-feature:hover {
    border-color: rgba(236, 0, 110, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-feature .icon {
    width: 48px;
    height: 48px;
    background: rgba(236, 0, 110, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.service-feature h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

@media (min-width: 640px) {
    .stats-row { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA Section */
.cta-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--primary-glow);
}

.btn-primary i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

/* Case Study Specific */
.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 24px 0 40px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
}

.case-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case-meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.case-meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Related Posts/Pages */
.related-section {
    padding: 64px 0;
    border-top: 1px solid var(--border-subtle);
}

.related-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    border-color: rgba(236, 0, 110, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.related-card .tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 12px;
}

.related-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    flex-grow: 1;
}

.related-card .read-more {
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.related-card:hover .read-more i {
    transform: translateX(3px);
}

.related-card .read-more i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
