/* ===== SHARED DARK THEME FOR MULTI-PAGE SYSTEM ===== */
:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
}

body.theme-dark {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #fff;
    margin: 0;
}

/* Header & Nav */
.header-projects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
}

.nav-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.nav-link-custom {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
    opacity: 0.7;
}

.nav-link-custom:hover, 
.nav-link-custom.active {
    color: var(--clr-accent);
    opacity: 1;
}

.btn-call {
    background: var(--clr-accent);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-call:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

/* Page Hero */
.page-hero {
    padding: 200px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 15px;
    color: #fff;
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.7;
    max-width: 800px;
    margin: 0 auto;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: 0.4s;
    height: 100%;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--clr-accent);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-centered {
        gap: 20px;
        flex-wrap: wrap;
    }
    .page-hero h1 {
        font-size: 2.5rem;
    }
}

/* ===== PROJECT MODAL & CAROUSEL ===== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}

.close-project-modal {
    position: fixed;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 4rem;
    cursor: pointer;
    z-index: 100000;
    transition: 0.3s;
    line-height: 1;
}

.close-project-modal:hover {
    color: var(--clr-accent);
    transform: rotate(90deg);
}

.carousel-prev, .carousel-next {
    position: absolute;
    background: var(--clr-accent) !important;
    color: #fff !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    transition: 0.3s !important;
    opacity: 1 !important;
    z-index: 100;
}

.carousel-prev:hover, .carousel-next:hover {
    transform: scale(1.1);
    background: #fff !important;
    color: #000 !important;
}

.carousel-prev { left: 40px; }
.carousel-next { right: 40px; }

#carousel-main-img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,1);
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
    .carousel-prev, .carousel-next { width: 50px !important; height: 50px !important; }
    .close-project-modal { top: 20px; right: 20px; font-size: 3rem; }
}

/* ===== BLOG POST TYPOGRAPHY ===== */
.post-content {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.post-content h2, .post-content h3 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.post-content h2 { font-size: 2.2rem; }
.post-content h3 { font-size: 1.6rem; }

.post-content p {
    margin-bottom: 1.5em;
}

.post-content blockquote {
    border-left: 4px solid var(--clr-accent);
    padding: 20px 30px;
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.03);
    font-style: italic;
    font-size: 1.3rem;
    color: #fff;
}

.post-content img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.post-content li {
    margin-bottom: 0.8em;
}

/* ===== COMMENTS SECTION ===== */
.comment-section {
    max-width: 850px;
    margin: 80px auto;
    padding-top: 60px;
    border-top: 1px solid var(--glass-border);
}

.comment-form {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    margin-bottom: 40px;
}

.comment-form textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    min-height: 120px;
    margin-bottom: 15px;
    font-family: inherit;
}

.comment-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-input-grid input {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.comment-author {
    font-weight: 600;
    color: var(--clr-accent);
}

.comment-date {
    opacity: 0.5;
}

/* ===== CONTACT BUTTONS (IN POST) ===== */
.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 60px 0;
}

.btn-social {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-social.tg-channel { background: #24A1DE; color: #fff; }
.btn-social.tg-direct { background: #0088cc; color: #fff; }
.btn-social.whatsapp { background: #25D366; color: #fff; }

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}
