/* =========================
   ROOT VARIABLES
========================= */
:root {
    --primary: #d52b1e;
    --primary-dark: #a81f15;
    --black: #111111;
    --text: #222222;
    --light-text: #666666;
    --bg: #ffffff;
    --bg-light: #f7f7f7;
    --border: #e5e5e5;
}

/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    letter-spacing: 0.2px;
    color: var(--text);
    line-height: 1.6;
}


h1, h2, h3 {
    font-weight: 600;
}
/* =========================
   CONTAINER
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   HEADER
========================= */
.header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
     height: 46px;
  object-fit: contain;
}

/* NAV */
.header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.header nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

/* subtle underline animation */
.header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.header nav a:hover::after {
    width: 100%;
}



.menu-toggle {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
}

/* the 3 lines */
.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--black);
    left: 0;
    transition: 0.3s;
}

/* position each line */
.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 9px;
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}


/* =========================
   HERO SECTION
========================= */
.hero {
    padding: 120px 0;
    background: linear-gradient(to bottom, #ffffff, #f7f7f7);
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--black);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    color: var(--light-text);
    font-size: 1.2rem;
    max-width: 600px;
    margin: auto;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: 0.3s;
    font-weight: 500;
}

.btn:hover {
    background: var(--primary-dark);
}

/* =========================
   SECTIONS
========================= */
.section {
    padding: 80px 0;
}

.section.light {
    background: var(--bg-light);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--black);
}

.section p {
    color: var(--light-text);
    max-width: 700px;
}

/* =========================
   CARDS (Portfolio / News)
========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 20px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--black);
}

.card p {
    color: var(--light-text);
}

/* =========================
   CONTACT FORM
========================= */
form {
    max-width: 600px;
    margin-top: 30px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}




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

.pagination {
    margin: 60px auto;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    border-radius: 4px;
    transition: 0.2s;
    font-size: 0.95rem;
}

.pagination a:hover {
    background: var(--bg-light);
}

.pagination a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}




/* =========================
   FOOTER
========================= */
.footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.footer p {
    font-size: 0.9rem;
}

/* =========================
   PORTFOLIO HERO
========================= */
.portfolio-hero {
    padding: 100px 0 140px;
    background: url('../images/world-map.png') top center / cover no-repeat;
    position: relative;
    text-align: center;
    color: #fff;
}

/* darker, smoother overlay */
.portfolio-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.85)
    );
}

/* content above overlay */
.portfolio-hero .container {
    position: relative;
    z-index: 2;
}

/* headline */
.portfolio-hero h1 {
    font-size: 3rem;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* subtle red accent line */
.portfolio-hero h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

/* subtitle */
.portfolio-hero p {
    color: #ccc;
    font-size: 1.1rem;
}
/* =========================
   FILTERS
========================= */
.filters {
    position: relative;
    margin: -110px auto 60px; /* pulls it UP */
    
    display: flex;
    justify-content: center;
    gap: 10px;

    width: fit-content;
    max-width: 100%;

    padding: 12px 18px;

    background: #fff;
    border-radius: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);

    z-index: 10;
}

/* buttons */
.filters button {
    padding: 10px 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    border-radius: 20px;
    transition: all 0.25s ease;
}

/* active + hover */
.filters button.active,
.filters button:hover {
    background: var(--primary);
    color: #fff;
}
/* =========================
   GRID
========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* =========================
   CARD
========================= */
.card {
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
}

/* image zoom effect */
.card:hover img {
    transform: scale(1.08);
}

/* lift card slightly */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* image */
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.5s ease;
}

/* content */
.card h3 {
    padding: 15px 20px 5px;
    font-size: 1.1rem;
}

.card p {
    padding: 0 20px 15px;
    color: var(--light-text);
    font-size: 0.95rem;
}

/* button */
.card .btn {
    margin: 0 20px 20px;
}

/* hover effect */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: transparent;
}


.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(213, 43, 30, 0);
    transition: 0.3s ease;
}


.card:hover::after {
    background: rgba(213, 43, 30, 0.05);
}


.region {
    margin-top: 60px;
}

.region h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

.subarea {
    margin-bottom: 40px;
}

.subarea h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary);
}




/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .header nav ul {
        gap: 15px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding: 80px 0;
    }
}


/* =========================
   MOBILE NAV FIX
========================= */

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {

    .header .container {
        flex-direction: row;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid var(--border);
        display: none;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    nav ul li {
        text-align: center;
    }

    nav.active {
        display: block;
    }
}


@media (max-width: 768px) {

    .filters {
        margin: -60px 10px 40px;

        justify-content: flex-start; /* align left for scroll */
        overflow-x: auto;           /* enable horizontal scroll */
        white-space: nowrap;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .filters::-webkit-scrollbar {
        display: none; /* Chrome */
    }

    .filters button {
        flex: 0 0 auto; /* prevent shrinking */
    }
}




@media (max-width: 768px) {

    .portfolio-hero {
        background-position: center top;
        background-size: cover;
        padding: 80px 0 120px;

        /* IMPORTANT: slightly brighten image */
        filter: brightness(1.15) contrast(1.05);
    }

    .portfolio-hero::after {
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.55),
            rgba(0,0,0,0.70)
        );
    }
}