/* === FONT IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* === CUSTOM FONT (LOCAL) === */
@font-face {
    font-family: 'Ahsing';
    src: url('../fonts/Ahsing-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === LIGHT THEME VARIABLES (Default) === */
:root {
    /* Backgrounds */
    --bg: #fff;
    --bg-hovr: #000;

    /* Text */
    --txt: #000;
    --txt-hovr: #fff;

    /* Glass Effects */
    --glass: rgba(0, 0, 0, 0.025);
    --glass-hovr: rgba(0, 0, 0, 0.075);

    /* Borders */
    --border: 1px solid rgba(0, 0, 0, 0.1);

    /* Hover States / Accents */
    --hover-bg: #0f0f0f;
    --hover-c: #fff;
}

/* === DARK THEME VARIABLES (Toggle Class) === */
.darkMode {
    /* Backgrounds */
    --bg: #0f0f0f;
    --bg-hovr: #fff;

    /* Text */
    --txt: #fff;
    --txt-hovr: #000;

    /* Glass Effects */
    --glass: rgba(255, 255, 255, 0.025);
    --glass-hovr: rgba(255, 255, 255, 0.075);

    /* Borders */
    --border: 1px solid rgba(255, 255, 255, 0.1);

    /* Hover States / Accents */
    --hover-bg: #fff;
    --hover-c: #000;
}

body {
    width: 95vw;
    margin: auto;
    background: var(--bg);
    color: var(--txt);
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

::-webkit-scrollbar {
    display: none;
}

/* === BUTTONS === */
.btn {
    height: 42px;
    background: var(--glass);
    color: var(--txt);
    border: var(--border);
    border-radius: 30px;
    padding: 7px 21px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 550;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
}

.btn span {
    font-size: 21px;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2.5px);
    background: var(--glass-hovr);
}

.btn:active {
    background: var(--glass-hovr);
}

/* === SECTION HEADINGS === */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 0;
    transition: all 0.3s ease;
}

.section-heading h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--txt);
    padding: 0 40px 0 0;
    white-space: nowrap;
}

.section-heading .tagline {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--txt);
}

/* === FILTER BUTTONS === */
.filter-buttons {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 0.5rem;
    padding: 7px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.filter-btn {
    height: 42px;
    background: var(--glass);
    color: var(--txt);
    border: var(--border);
    border-radius: 30px;
    padding: 7px 21px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--glass-hovr);
    transform: translateY(-2.5px);
}

.filter-btn.active {
    background: var(--hover-bg);
    color: var(--hover-c);
}

/* === PROJECTS GRID === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-flow: dense;
    gap: 10px;
    padding: 10px 0;
}

/* === PROJECT CARD === */
.project-card {
    background: var(--glass);
    border: var(--border);
    border-radius: 30px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 30px;
    transition: all 0.3s ease;
}

/* === PROJECT INFO === */
.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 10px;
}

.project-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.project-category {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    color: var(--txt);
    opacity: 0.8;
}

.project-title {
    font-size: 21px;
    font-weight: 600;
    color: var(--txt);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === PROJECT LINKS === */
.projectLink a {
    text-decoration: none;
    color: var(--txt);
    border: var(--border);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.projectLink a:hover {
    background: var(--hover-bg);
    color: var(--hover-c);
}

.projectLink a span {
    font-size: 24px;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
    .project-card img {
        height: 200px;
    }
}

@media (min-width: 728px) {
    .project-card:nth-child(5) {
        grid-column: span 2;
    }
}

@media (min-width: 900px) {
    .project-card:nth-child(3) {
        grid-column: span 2;
    }
}