/* ============================================================
   LAYOUT & RESPONSIVE – Kazuma Ali Portfolio
   ============================================================ */

/* ---------- MAIN CONTENT ---------- */
main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
    width: 100%;
}

/* ---------- HEADER (Netflix-style) ---------- */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 1rem 2.5rem;
    background: rgba(10, 30, 40, 0.75);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(78, 205, 196, 0.10);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ---------- FOOTER (Netflix-inspired) ---------- */
.footer {
    margin-top: 4rem;
    padding: 2.5rem 2rem 1.5rem;
    background: rgba(6, 20, 28, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(78, 205, 196, 0.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem 2.5rem;
    text-align: center;
}
.footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.footer a svg {
    width: 1.2rem;       /* match the size of the Font Awesome icons */
    height: 1.2rem;
    display: inline-block;
    flex-shrink: 0;      /* prevent shrinking in flex */
}
.footer a i {
    font-size: 1.2rem;
}
.footer a:hover {
    color: #6ee0d6;
    transform: translateY(-2px);
}
.footer .foot-txt {
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    opacity: 0.7;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    main {
        padding: 1rem 1.2rem 2rem;
    }
    .header {
        padding: 0.8rem 1.2rem;
    }
    .glass-card,
    .post-card,
    .project-card,
    .client-card {
        padding: 1.2rem 1.2rem;
    }
    .notifications-dropdown {
        width: 320px;
        right: -20px;
    }
    [dir="rtl"] .notifications-dropdown {
        right: auto;
        left: -20px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0.8rem 1rem;
    }
    .header .log-btns {
        justify-content: center;
    }
    .cards {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .cards>div {
        min-height: 140px;
        padding: 1.2rem;
    }
    .cards>div a {
        font-size: 0.9rem;
        padding: 0.4rem 1.2rem;
    }
    .post-card .post-header {
        flex-wrap: wrap;
    }
    .post-card .post-date {
        margin-left: 0;
        width: 100%;
    }
    [dir="rtl"] .post-card .post-date {
        margin-right: 0;
    }
    .comment-body {
        margin-left: 0;
    }
    [dir="rtl"] .comment-body {
        margin-right: 0;
    }
    .comment-actions {
        margin-left: 0;
    }
    [dir="rtl"] .comment-actions {
        margin-right: 0;
    }
    .reply {
        margin-left: 0.8rem;
        padding-left: 0.6rem;
    }
    [dir="rtl"] .reply {
        margin-right: 0.8rem;
        padding-right: 0.6rem;
        margin-left: 0;
        padding-left: 0;
    }
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .payment-container {
        padding: 1.5rem 1.2rem;
        margin: 1rem auto;
    }
    .modal .modal-content {
        max-width: 98vw;
        max-height: 70vh;
    }
    .modal .close-modal {
        top: 0.8rem;
        right: 1.2rem;
        font-size: 2rem;
    }
    [dir="rtl"] .modal .close-modal {
        right: auto;
        left: 1.2rem;
    }
    .notifications-dropdown {
        width: 290px;
        right: -10px;
        max-height: 380px;
    }
    [dir="rtl"] .notifications-dropdown {
        right: auto;
        left: -10px;
    }
    .footer {
        padding: 1.5rem 1rem 1rem;
        gap: 0.8rem 1.2rem;
    }
    .footer a {
        font-size: 0.8rem;
    }
    .footer a svg {
      width: 1.2rem;       /* match the size of the Font Awesome icons */
      height: 1.2rem;
      display: inline-block;
      flex-shrink: 0;      /* prevent shrinking in flex */
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    main {
        padding: 0.6rem 0.8rem 1.5rem;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .cards>div {
        min-height: 120px;
    }
    .post-card {
        padding: 1rem;
    }
    .post-card .post-actions {
        gap: 0.6rem;
    }
    .post-card .post-actions button {
        padding: 0.2rem 0.8rem;
        font-size: 0.75rem;
    }
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .stat-card {
        padding: 0.8rem 1rem;
    }
    .stat-card .stat-number {
        font-size: 1.2rem;
    }
    .stat-table th,
    .stat-table td {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    .payment-container {
        padding: 1rem 0.8rem;
    }
    .messages-container .message {
        max-width: 95%;
    }
    .support-chat-list .chat-item {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
    }
    .chat-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .notifications-dropdown {
        width: 260px;
        right: -5px;
        max-height: 320px;
    }
    [dir="rtl"] .notifications-dropdown {
        right: auto;
        left: -5px;
    }
    .header .log-btns a {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    .language-switcher {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}