
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}
body {
    min-height: 100vh;
    background: #f5f7fb;
    color: #1f2937;
}
img {
    display: block;
    max-width: 100%;
}
button,
input {
    font: inherit;
}
.page {
    width: 92%;
    max-width: 1250px;
    margin: 30px auto;
}
.top-bar {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 12px;
}
.brand span {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #111827;
    white-space: nowrap;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}
.nav-links a {
    text-decoration: none;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.2s;
}
.nav-links a:hover {
    color: #2563eb;
}
.login-btn {
    border: none;
    padding: 11px 22px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.login-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.hero {
    padding: 35px 0 40px;
    text-align: center;
}
.hero-copy {
    margin-bottom: 30px;
}
.eyebrow {
    margin-bottom: 12px;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hero-copy h1 {
    max-width: 800px;
    margin: auto;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
}
.hero-copy p {
    max-width: 650px;
    margin: 15px auto 0;
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.7;
}
.search-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: auto;
    padding: 1px 1px 1px 20px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    transition: 0.2s;
}
.search-wrapper:focus-within {
    border-color: #2563eb;
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.1),
        0 10px 35px rgba(0, 0, 0, 0.08);
}
.search-icon {
    font-size: 1.4rem;
    color: #6b7280;
    margin-right: 10px;
}
.search-wrapper input {
    flex: 1;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #111827;
    font-size: 1rem;
    padding: 14px 5px;
}
.search-wrapper input::placeholder {
    color: #9ca3af;
}
.search-wrapper button {
    border: none;
    padding: 13px 28px;
    border-radius: 12px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.search-wrapper button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}
.image-results {
    margin-top: 50px;
}
.image-results h2 {
    margin-bottom: 25px;
    font-size: 1.7rem;
    color: #111827;
}
.image-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.download-btn {
    margin-top: 10px;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: #111827;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.download-btn:hover {
    background: #2563eb;
}


.image-card {
    overflow: hidden;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    /* object-fit: cover; */
    transition: transform 0.4s ease;
}
.image-card:hover img {
    transform: scale(1.06);
}

.image-card {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    background: white;
}
.image-card p {
    margin: 10px 12px 5px;
    font-size: 14px;
}

.image-card a {
    display: inline-block;
    margin: 0 12px 12px;
    text-decoration: none;
}
.image-info {
    padding: 14px;
}
.image-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}
.image-info p {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #6b7280;
}
.load-more {
    display: block;
    margin: 45px auto;
    padding: 13px 30px;
    border: none;
    border-radius: 12px;
    background: #111827;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.load-more:hover {
    background: #2563eb;

    transform: translateY(-2px);
}
footer {
  color: #232420;          
  text-align: center;        
  padding: 20px 10px;        
  font-size: 14px;          
  font-family: Arial, sans-serif;
  border-top: 2px solid #1b263b; 
}

footer p {
  margin: 5px 0;           
}

footer p:first-child {
  font-weight: bold;      
  color: #f4a261;          
}

@media (max-width: 780px) {
    .page-shell {
        width: 94%;
    }
    .top-bar {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px;
    }
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        display: none;
        margin-left: 0;
    }
    .hero {
        padding-top: 30px;
    }
    .hero-copy h1 {
        font-size: 2.5rem;
    }
    .search-wrapper {
        flex-wrap: wrap;
        padding: 12px;
    }
    .search-icon {
        margin-left: 8px;
    }
    .search-wrapper input {
        width: 100%;
    }
    .search-wrapper button {
        width: 100%;

        margin-top: 5px;
    }
    /* .image-grid {
        grid-template-columns:
        repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    } */
     .image-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .image-card img {
        height: 220px;
    }
}
@media (max-width: 480px) {
    .page-shell {
        margin: 15px auto;
    }
    .brand span {
        font-size: 1.2rem;
    }
    .nav-links {
        gap: 15px;

        font-size: 0.85rem;
    }
    .hero-copy h1 {
        font-size: 2rem;
    }
    .hero-copy p {
        font-size: 0.95rem;
    }
    .image-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 10px;
    }
    .image-card img {
        height: 180px;
    }
}
/* .image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
} */

/* Image Preview */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}