/* ==========================================================================
   CSS Variables & Theme
   ========================================================================== */
   :root {
    --primary-color: #9b59b6;      /* Purple from logo */
    --primary-dark: #6c3483;
    --primary-light: #c39bd3;
    --bg-color: #121212;         /* Dark background */
    --bg-darker: #0a0a0a;
    --bg-card: #1e1e1e;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent: #e056fd;           /* Neon accent */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
}

.section-padding {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(155, 89, 182, 0.1);
    transform: translateY(-3px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn-primary) {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(155,89,182,0.15) 0%, rgba(18,18,18,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Hexagon Animation */
.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hexagon-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    animation: float 6s ease-in-out infinite;
}

.hexagon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, transparent 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.8;
}

.hexagon.inner {
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    box-shadow: inset 0 0 50px rgba(155, 89, 182, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glitch::before {
    animation: glitch-1 4s infinite linear;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
    opacity: 0.8;
}

.glitch::after {
    animation: glitch-2 4s infinite linear;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
    opacity: 0.8;
}

@keyframes glitch-1 {
    0%, 90%, 100% { transform: translate(-2px, -2px); clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); }
    92% { transform: translate(2px, 0); clip-path: polygon(0 10%, 100% 10%, 100% 40%, 0 40%); }
    94% { transform: translate(-2px, 1px); clip-path: polygon(0 20%, 100% 20%, 100% 50%, 0 50%); }
    96% { transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
    0%, 90%, 100% { transform: translate(2px, 2px); clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); }
    92% { transform: translate(-2px, 0); clip-path: polygon(0 60%, 100% 60%, 100% 90%, 0 90%); }
    94% { transform: translate(2px, -1px); clip-path: polygon(0 70%, 100% 70%, 100% 100%, 0 100%); }
    96% { transform: translate(-1px, 1px); }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateX(10px);
    box-shadow: -10px 10px 30px rgba(0,0,0,0.3);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ==========================================================================
   Tech Stack Section
   ========================================================================== */
.tech-stack {
    background-color: var(--bg-color);
    padding-bottom: 50px;
}

.tech-marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.tech-marquee-wrapper::before,
.tech-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.tech-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.tech-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.tech-marquee {
    display: inline-flex;
    animation: marquee 25s linear infinite;
}

.tech-marquee:hover {
    animation-play-state: paused;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--bg-card);
    border-radius: 50px;
    margin: 0 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.tech-item:hover {
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.3);
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(155, 89, 182, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-details li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-details li i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18,18,18,1) 0%, rgba(18,18,18,0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: bottom 0.4s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.portfolio-overlay p {
    color: #fff;
    font-size: 0.95rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(155, 89, 182, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-item h4 {
    margin-bottom: 5px;
    color: #fff;
}

.info-item p a {
    color: var(--text-muted);
}

.info-item p a:hover {
    color: var(--primary-color);
}

.contact-form-container {
    padding-left: 50px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.contact-form-container h3 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form select {
    appearance: none;
    cursor: pointer;
}

.contact-form select option {
    background: var(--bg-card);
    color: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.2);
    background: rgba(255,255,255,0.05);
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-submit.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-submit.btn-loading::after {
    content: ' \2026'; /* ellipsis */
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: #050505;
    padding: 80px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-col h3 {
    color: var(--primary-color);
    letter-spacing: 1px;
}

.footer-col p, .footer-col ul li {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-col.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
    }
    
    .hero-content h1 { font-size: 3rem; }
    .hero-buttons { justify-content: center; }
    .hexagon-wrapper { width: 250px; height: 250px; margin-bottom: 40px; }
    
    .about-content { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; }
    .contact-form-container { padding-left: 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; }
    
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px 0;
        display: none;
    }
    
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-col.social-links a { margin: 0 5px; }
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.error-content {
    max-width: 600px;
}

.error-code {
    font-size: 10rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(45deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    position: relative;
}

.error-code .glitch {
    font-size: inherit;
    background: linear-gradient(45deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-code .glitch::before,
.error-code .glitch::after {
    background: linear-gradient(45deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.error-content > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ==========================================================================
   Alert Styles
   ========================================================================== */
.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: wa-pulse 2s infinite;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: #fff;
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 35px;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    color: var(--primary-color);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

/* ==========================================================================
   Nav Active Link
   ========================================================================== */
.nav-active {
    color: var(--primary-color) !important;
}

/* ==========================================================================
   Admin Panel Navigation
   ========================================================================== */
.admin-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.admin-nav a {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(155, 89, 182, 0.15);
    color: var(--primary-color);
}

/* ==========================================================================
   Blog — Listing Page
   ========================================================================== */
.blog-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(155,89,182,0.08) 0%, transparent 100%);
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

.category-pill {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(155,89,182,0.4);
    color: var(--text-muted);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(155,89,182,0.4);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(155,89,182,0.3);
}

.blog-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-darker);
}

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

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

.blog-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: rgba(155,89,182,0.3);
}

.blog-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card-category {
    background: rgba(155,89,182,0.15);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.blog-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card:hover .blog-card-title {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.blog-card-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.blog-card-read:hover {
    gap: 12px;
    color: var(--accent);
}

/* ==========================================================================
   Blog — Single Post
   ========================================================================== */
.blog-post-hero {
    padding: 120px 0 0;
}

.blog-post-header {
    max-width: 820px;
    margin: 0 auto 40px;
    padding: 0 20px;
    text-align: center;
}

.blog-post-header .blog-card-meta {
    justify-content: center;
    margin-bottom: 20px;
}

.blog-post-header h1 {
    font-size: 2.6rem;
    line-height: 1.25;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-post-thumb {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 60px;
    display: block;
}

.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 50px;
    align-items: start;
}

/* Prose content from Quill */
.blog-content {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.85;
}

.blog-content h1, .blog-content h2, .blog-content h3,
.blog-content h4, .blog-content h5, .blog-content h6 {
    color: #fff;
    margin: 1.6em 0 0.6em;
    line-height: 1.3;
}

.blog-content h1 { font-size: 2rem; }
.blog-content h2 { font-size: 1.65rem; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 10px; }
.blog-content h3 { font-size: 1.35rem; }

.blog-content p { margin-bottom: 1.2em; }

.blog-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-content ul, .blog-content ol {
    padding-left: 1.6em;
    margin-bottom: 1.2em;
}

.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin-bottom: 6px; color: var(--text-muted); }

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: rgba(155,89,182,0.07);
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
    font-style: italic;
}

.blog-content pre, .blog-content .ql-code-block-container {
    background: var(--bg-darker);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #c39bd3;
}

.blog-content code {
    background: rgba(155,89,182,0.12);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.88em;
    color: var(--primary-light);
}

.blog-content pre code { background: none; padding: 0; color: inherit; }

.blog-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1.2em 0;
}

.blog-content strong { color: #fff; font-weight: 700; }
.blog-content em { font-style: italic; }

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.05);
}

.sidebar-widget h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sidebar-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition);
}

.sidebar-cat-list li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.sidebar-cat-list li a span {
    background: rgba(155,89,182,0.15);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ==========================================================================
   Blog — Comments
   ========================================================================== */
.comments-section {
    margin-top: 70px;
    padding-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.comment-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comment-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
}

.comment-author {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comment-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-line;
}

.comment-form-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 35px;
    margin-top: 40px;
    border: 1px solid rgba(255,255,255,0.05);
}

.comment-form-box h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(155,89,182,0.2);
    background: rgba(255,255,255,0.05);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination a, .pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    transition: var(--transition);
}

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

.pagination .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ==========================================================================
   Blog — Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .blog-post-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
}

@media (max-width: 768px) {
    .blog-hero h1 { font-size: 2.2rem; }
    .blog-post-header h1 { font-size: 1.9rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .comment-form .form-row { grid-template-columns: 1fr; }
    .comment-form-box { padding: 25px 20px; }
}
