/* Air Force Blue Design System */
:root {
    /* Air Force Blue scheme */
    --primary-color: #5D8AA8;
    /* Air Force Blue */
    --primary-dark: #3D6A88;
    /* Darker steel blue for hover/borders */
    --accent-color: #6B98B6;
    /* Lighter accent */

    --text-dark: #2c3e50;
    --text-light: #607d8b;
    --bg-light: #e8eff4;
    /* Very light blue-grey bg */
    --white: #ffffff;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(93, 138, 168, 0.25);
    /* Tinted shadow */

    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    background-color: var(--bg-light);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 60px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* === HEADER === */
.ibo-header {
    background: #232F2E;
    color: var(--white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
}

/* Logo */
.ibo-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ibo-logo i {
    margin-right: 8px;
    font-size: 24px;
}

/* Search Bar */
.ibo-search {
    flex-grow: 1;
    max-width: 600px;
    position: relative;
}

.search-form {
    display: flex;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    height: 44px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-form input {
    flex-grow: 1;
    border: none;
    padding: 0 20px;
    font-size: 14px;
    outline: none;
    color: var(--text-dark);
}

.search-form button {
    background: var(--white);
    border: none;
    padding: 0 20px;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 16px;
    border-radius: 0 50px 50px 0;
    transition: background 0.2s;
}

.search-form button:hover {
    background: #f0f4f8;
}

/* Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: none;
    overflow: hidden;
    border: 1px solid #eee;
}

.suggestion-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f0f7ff;
}

.suggestion-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.suggestion-info {
    flex-grow: 1;
}

.suggestion-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.suggestion-price {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 700;
}

/* Header Icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    color: var(--white);
    opacity: 0.95;
    transition: opacity 0.2s, transform 0.2s;
}

.action-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.action-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

/* Sub Header (Categories) */
.sub-header {
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    overflow-x: auto;
    white-space: nowrap;
    padding: 5px 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.sub-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
}

.sub-nav a {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    border-radius: 20px;
    transition: all 0.2s;
}

.sub-nav a:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}

.sub-nav a.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 5px rgba(93, 138, 168, 0.35);
}

/* === MOBILE === */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 10px 15px;
        gap: 10px;
    }

    .ibo-logo {
        font-size: 24px;
        order: 1;
    }

    .header-actions {
        order: 2;
        gap: 15px;
    }

    .action-item span {
        display: none;
    }

    .ibo-search {
        order: 3;
        width: 100%;
        margin-top: 5px;
    }
}

/* === MAIN === */
.main-container {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 20px;
}

/* Banner */
.hero-banner {
    background: linear-gradient(120deg, #5D8AA8 0%, #8BB0C8 50%, #A8C4D8 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-text h1 {
    margin: 0;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hero-text p {
    margin: 10px 0 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Section Title */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 4px;
    margin-right: 12px;
}

/* Category Grid */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.cat-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    /* Remove padding for cover image */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer, deeper shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* align-items: center;  <-- Remove this so image stretches */
    justify-content: space-between;
    height: 100%;
}

.cat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(93, 138, 168, 0.25);
}

.cat-item::before {
    /* Top accent bar */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    z-index: 2;
    opacity: 0.8;
}

.cat-item i {
    /* Icon Fallback */
    font-size: 48px;
    color: var(--primary-color);
    margin: 40px auto 20px;
    display: inline-block;
    transition: transform 0.3s;
}

.cat-item:hover i {
    transform: scale(1.1);
}

.cat-item img {
    width: 100%;
    height: 160px;
    /* Fixed height for uniformity */
    object-fit: cover;
    /* This makes it look "Pro" like projects */
    margin-bottom: 0;
    border-radius: 0;
    /* Flush edges */
    transition: transform 0.5s;
}

.cat-item:hover img {
    transform: scale(1.1);
}

.cat-item span {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    padding: 15px 20px;
    /* Add padding to text area */
    background: var(--white);
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(93, 138, 168, 0.2);
}

.project-img-wrapper {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.project-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.project-details {
    padding: 20px;
}

.project-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-dark);
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
}

.project-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.project-actions {
    display: flex;
    gap: 12px;
}

.btn-ibo {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-ibo.secondary {
    background: #dce8f0;
    color: var(--primary-dark);
}

.btn-ibo.secondary:hover {
    background: #c4d6e2;
}

.btn-ibo.primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(93, 138, 168, 0.4);
}

.btn-ibo.primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 15px rgba(93, 138, 168, 0.5);
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #00e676;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
    z-index: 2000;
    transition: transform 0.3s;
}

.floating-wa:hover {
    transform: scale(1.1) rotate(10deg);
}

/* === FILTERS === */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.filter-select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 180px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D8AA8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.filter-select:hover,
.filter-select:focus {
    background-color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 138, 168, 0.1);
}

@media (max-width: 600px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
        min-width: 0;
    }
}
