/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

/* Global container */
.container {
    width: 100%;
    max-width: 70rem; /* 1280px */
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}
/* Header: create a stacking context and keep it above the drawer */
header {
    border-bottom: 1px solid #e2e8f0;
    background-color: #fff;
    position: fixed; /* or 'sticky' with top:0 if preferred */
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 2000; /* higher than drawer */
}

/* Compensate for fixed header so content doesn't hide beneath it */
/* body {
    padding-top: 70px;
} */

html.modal-open,
body.modal-open {
    overflow: hidden;
    height: 100%;
}

/* Navbar wrapper: ensure z-index applies by positioning it */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 16px;
    position: relative; /* enables its z-index */
    z-index: 2001; /* above drawer if needed for clicks/icons */
}

.logo-wrapper {
    width: 231px;
}
@media (min-width: 768px) {
    .logo-wrapper {
        width: 160px;
        height: 40px;
    }
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hamburger toggle (mobile only) */
.drawer-toggle {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #475569;
    position: relative; /* ensure it sits above drawer */
    z-index: 2100;
}

/* Drawer styles (mobile only) */
.drawer {
    position: fixed;
    top: -100%; /* hidden above viewport */
    left: 0;
    width: 100%; /* full width */
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease;
    z-index: 1500; /* lower than header */
    display: flex;
    flex-direction: column;
    height: auto; /* let height follow content */
    max-height: calc(
        100% - 70px
    ); /* safety: don’t exceed viewport below navbar */
    overflow-y: auto; /* scroll if content is taller than viewport */
} /* When open, slide down just below navbar */
.drawer.open {
    top: 70px; /* equal to navbar height */
}

.drawer ul {
    list-style: none;
    padding: 24px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer a {
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #475569;
    transition: color 150ms ease;
}

.drawer a.active {
    color: #2563eb;
}
.drawer a:hover {
    color: #2563eb;
}

/* Hide inline nav on mobile */
.nav-items {
    display: none;
}

/* Desktop / Tablet view */
@media (min-width: 768px) {
    .drawer {
        display: none;
    }
    .drawer-toggle {
        display: none;
    }

    .nav-items {
        display: block;
    }
    .nav-items ul {
        display: flex;
        flex-direction: row;
        gap: 20px;
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
    }
    .nav-items a {
        font-size: 12.25px;
        font-weight: 500;
        text-decoration: none;
        color: #475569;
        transition: color 150ms ease;
        padding-bottom: 8px;
        position: relative;
    }
    .nav-items a:hover {
        color: #2563eb;
    }
    .nav-items a.active {
        color: #2563eb;
    }
    .nav-items a.active::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #2563eb;
    }
}

/* Section wrapper */
.impact-section {
    position: relative;
    background-color: #0f172a;
    color: #fff;
    height: 40vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Container */
.impact-container {
    position: relative;
    z-index: 1;
    max-width: 70rem;
    margin: 0 auto;
    padding: 0 1rem; /* px-4 */
}

.page-hero {
    position: relative;
    background-color: #0f172a;
    color: #fff;
    height: 40vh;
    display: flex;
    align-items: center;
}

.page-hero .container {
    max-width: 70rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: left;
}

/* Title */
.impact-title {
    font-size: 3rem; /* text-5xl */
    font-weight: bold;
    margin-bottom: 2rem;
}

/* Text */
.impact-text {
    font-size: 1.2rem; /* text-xl */
    color: #cbd5e1; /* green-100 */
    max-width: 70rem; /* max-w-3xl */
    line-height: 1.6;
}
/* --- Responsive breakpoints --- */ /* Small screens (≥640px) */
@media (min-width: 640px) {
    .page-hero .container {
        padding: 0 1.5rem; /* sm:px-6 */
    }
    .impact-title {
        font-size: 1.75rem;
    }
    .impact-text {
        font-size: 1.05rem;
    }
} /* Medium screens (≥768px) */
@media (min-width: 768px) {
    .impact-title {
        font-size: 2rem; /* scales up */
    }
    .impact-text {
        font-size: 1.1rem;
        max-width: 36rem;
    }
} /* Large screens (≥1024px) */
@media (min-width: 1024px) {
    .page-hero .container {
        padding: 0 2rem; /* lg:px-8 */
        max-width: 70rem; /* desktop max width */
    }
    .impact-title {
        font-size: 3rem; /* reduced from Tailwind 3.75rem */
    }
    .impact-text {
        font-size: 1.2rem;
        max-width: 40rem;
    }
}

.projects-section {
    padding: 6rem 0; /* py-24 */
    background-color: #fff;
}

.projects-container {
    max-width: 70rem; /* max-w-7xl */
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .projects-container {
        padding: 0 1.5rem;
    }
}
@media (min-width: 1024px) {
    .projects-container {
        padding: 0 2rem;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem; /* gap-20 */
}

/* Card layout */
.project-card {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: flex-start;
    cursor: pointer;
}

/* .project-card.reverse {
    flex-direction: column-reverse;
} */

@media (min-width: 1024px) {
    .project-card {
        flex-direction: row;
    }
    .project-card.reverse {
        flex-direction: row-reverse;
    }
}

/* Image */
.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem; /* rounded-3xl */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); /* shadow-xl */
    height: 400px;
    flex: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Overlay */
.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(30, 58, 138, 0.2); /* blue-900/20 */
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
    opacity: 1;
}

.overlay span {
    background-color: #fff;
    color: #0f172a;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* Content */
.project-content {
    flex: 1;
}

.project-meta {
    margin-bottom: 1rem;
    font-size: 0.75rem; /* text-xs */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
    line-height: 1.5;
}

.meta-source {
    color: #2563eb; /* blue-600 */
    font-size: 0.7rem;
}

.meta-dot {
    color: #94a3b8; /* slate-400 */
    margin: 0 0.5rem;
}

.meta-date {
    color: #a9a9a9;
}

/* Title */
.project-title {
    font-size: 1.6rem; /* reduced from text-3xl (1.875rem) */
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #0f172a; /* slate-900 */
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: #2563eb; /* blue-600 */
}

/* Text */
.project-text {
    font-size: 1rem; /* reduced from text-lg (1.125rem) */
    color: #475569; /* slate-600 */
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Button */
.project-button {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: bold;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Dialog */
.dialog {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75); /* darker, premium feel */
    backdrop-filter: blur(4px); /* smooth glass effect */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
    overflow: hidden;
    overscroll-behavior: none;
}

.dialog.open {
    display: flex;
}
.dialog-content {
    background: #ffffff;
    border-radius: 1.25rem;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    animation: dialogFade 0.3s ease;
    overscroll-behavior: contain;
}

@keyframes dialogFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dialog-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.75rem;
    cursor: pointer;
    color: #64748b;
    transition: 0.2s ease;
}

.dialog-close:hover {
    color: #0f172a;
    transform: scale(1.1);
}

.dialog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.dialog-body {
    padding: 2rem;
}
.dialog-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}
.dialog-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.dialog-meta h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}
.dialog-meta p {
    font-weight: bold;
}
.dialog-text {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Deliverables container */
.dialog-deliverables {
    background: #f1f5f9;
    padding: 1.75rem;
    border-radius: 1rem;
    margin-top: 1rem;
}

/* Clean content reset */
.dialog-deliverables * {
    background: transparent !important;
    box-shadow: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* Paragraph spacing */
.dialog-deliverables p {
    /* margin-bottom: 1rem; */
    line-height: 1.7;
    color: #334155;
}

/* Professional bullets */
.dialog-deliverables ul {
    padding-left: 1.25rem;
    margin: 1rem 0;
}

.dialog-deliverables li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #334155;
}

/* .dialog-deliverables li::before {
    content: "•";
    color: #2563eb;
    margin-right: 0.5rem;
} */

.footer {
    background-color: #0f172a; /* slate-900 */
    color: #fff;
    padding-top: 4rem;
    padding-bottom: 2rem;
    font-family: sans-serif;
}

.footer-container {
    max-width: 70rem;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

.brand-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.brand-desc {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #94a3b8;
    font-size: 1.25rem;
    transition: color 0.3s;
}
.social-link:hover {
    color: #fff;
}

.section-title {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.section-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-list li {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.section-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}
.section-list a:hover {
    color: #fff;
}

.section-list a.disabled {
    opacity: 0.3;
}
.section-list a.disabled:hover {
    opacity: 1;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.875rem;
    color: #64748b;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .footer-links {
        margin-top: 0;
    }
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #fff;
}

.section {
    display: none;
}
.section.active {
    display: block;
}

/* ================= PAGINATION ================= */

.pagination-wrapper {
    margin-top: 70px;
    display: flex;
    justify-content: center;
}

/* UL */
.pagination {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* LI */
.page-item {
    list-style: none;
}

/* LINKS */
.page-link {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Hover */
.page-link:hover {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: translateY(-2px);
}

/* Active */
.page-item.active .page-link {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Disabled */
.page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Mobile */
@media (max-width: 576px) {
    .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}
