/* ------------------- */
/* RESET & BASIC SETUP */
/* ------------------- */
:root {
    --color-primary: #6c74e6;        /* 500 */
    --color-primary-dark: #4d4cdb;   /* 600 */
    --color-secondary: #FFFFFF;
    --color-bg-dark: #2c2989;         /* 900 */
    --color-bg-light: #f4f6fe;       /* 50 */
    --color-text-dark: #1d1e6c;       /* 950 */
    --color-border: #dae0fa;         /* 200 */
    --font-primary: 'Poppins', sans-serif;
    --container-width: 1200px;
    --section-padding: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    background-color: var(--color-secondary);
    color: #4A5568; 
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 3.25rem; } 
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; font-weight: 600; }

a {
    text-decoration: none;
    color: var(--color-text-dark);
    transition: color 0.3s ease;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.section-subtitle {
    max-width: 600px;
    margin-bottom: 2rem;
    color: #4A5568;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border-color: var(--color-primary);
}
.btn--primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

/* ------------------- */
/* HEADER */
/* ------------------- */
.header {
    background-color: var(--color-secondary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.5rem;
}
.header__logo img { height: 40px; }
.header__nav ul { display: flex; gap: 2.5rem; }
.header__nav a { color: #4A5568; font-weight: 500; }
.header__nav a:hover, .header__nav a.active { color: var(--color-primary); }
.header__menu-toggle { display: none; }

/* ------------------- */
/* PORTFOLIO HEADER & FILTERS */
/* ------------------- */
.portfolio-header {
    background-color: var(--color-bg-light);
    padding: 4rem 0 2rem;
    text-align: center;
}

.portfolio-header h1 {
    margin-bottom: 1rem;
}

.portfolio-header .section-subtitle {
    margin: 0 auto;
}

.filter-section {
    padding: 2rem 0;
    background-color: var(--color-bg-light);
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.filter-input, .filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-secondary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 116, 230, 0.2);
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    justify-content: center;
}

.filter-toggle label {
    font-weight: 500;
    cursor: pointer;
    color: var(--color-text-dark);
}

.filter-toggle input[type="checkbox"] {
    cursor: pointer;
    width: 1.25em;
    height: 1.25em;
    accent-color: var(--color-primary);
}


/* ------------------- */
/* PROJECTS */
/* ------------------- */
.projects {
    padding: var(--section-padding) 0;
    background-color: var(--color-secondary); 
}
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.project-card {
    background-color: var(--color-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Important for JS show/hide */
    flex-direction: column;
    border: 1px solid var(--color-border);
}
.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.project-card__content {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}
.project-card__content div { flex-grow: 1; }
.project-card__content p { font-size: 0.875rem; line-height: 1.5; }
.project-card__content h4 { margin-bottom: 0.5rem; }

.project-card__arrow {
    background-color: #E2E8F0;
    color: #4A5568;
    height: 36px;
    width: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-left: 1rem;
}
.project-card:hover .project-card__arrow {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.no-results-message {
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--color-bg-light);
    border-radius: 12px;
}

.no-results-message h2 {
    margin-bottom: 1rem;
}

/* ------------------- */
/* FOOTER */
/* ------------------- */
.footer {
    background-color: var(--color-bg-dark);
    padding: 5rem 0 0;
    color: #A0AEC0;
}
.footer__container {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 3rem;
    padding-bottom: 4rem;
}
.footer__logo {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.footer__logo img { height: 30px; }
.footer__col--about p { max-width: 300px; }
.footer__col h4 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.footer__col li { margin-bottom: 0.75rem; }
.footer__col a, .footer__col li { color: #A0AEC0; font-size: 0.875rem; }
.footer__col a:hover { color: var(--color-primary); }
.footer__copyright {
    border-top: 1px solid #4A5568;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.875rem;
}

/* ------------------- */
/* RESPONSIVE STYLES */
/* ------------------- */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    
    .footer__container { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 2rem;
    }
    .footer__col--about { 
        grid-column: 1 / -1; 
        text-align: center;
        margin-bottom: 2rem;
    }
    .footer__col--about p { margin: 0 auto; max-width: 500px; }
    .footer__logo { justify-content: center; }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 2rem; }
    
    .header__contact { display: none; }
    
    .header__menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001; 
    }
    .header__menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--color-text-dark);
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }

    .header__nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        clip-path: circle(0% at top right);
        transition: clip-path 0.5s ease-out;
    }
    .header__nav.active { 
        clip-path: circle(150% at top right);
    }
    .header__nav ul { 
        flex-direction: column; 
        gap: 2rem;
    }
    .header__nav a {
        color: var(--color-secondary);
        font-size: 1.5rem;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

    .filter-toggle {
        grid-column: 1 / -1;
    }

    .projects__grid { 
        grid-template-columns: 1fr; 
    }
    
    .footer__container { 
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .footer__col--about { 
        text-align: left;
        grid-column: 1 / -1;
        margin-bottom: 1rem;
     }
    .footer__logo { 
        justify-content: flex-start; 
    }
}

@media (max-width: 480px) {
     :root {
        --section-padding: 60px;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .footer__container { 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    .footer__col--about { text-align: center; }
    .footer__col { text-align: center; }
    .footer__logo { justify-content: center; }
    .footer__col h4 { margin-bottom: 1rem; }
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 10px; /* Adjust as needed */
}

.filter-group label {
    font-weight: 500;
    margin-right: 5px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
    accent-color: var(--color-primary); /* Style checkbox with your primary color */
    cursor: pointer;
}