/* Reset + Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    background: url('../images/back.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */

header {
    position: sticky;     /* makes it stick */
    top: 0;               /* stick to top */
    z-index: 1000;        /* ensures it stays above content */
    display: flex;
    justify-content: center;   /* center horizontally */
    align-items: center;       /* center vertically */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 20px;
    height: 100px; /* fixed header height */
    padding: 0 40px; /* only horizontal padding */
}

header img {
    max-height: 200%;  /* fill most of header height but not all */
    width: auto;      /* keep logo proportions */
    object-fit: contain;
}

/* Bento Grid */
main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-auto-rows: 150px;
    gap: 20px;
    padding: 20px 40px;
    flex-grow: 1;
}

.bento-item {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

/* Different sizes */
.bento-item.big {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.medium {
    grid-column: span 2;
    grid-row: span 1;
}

/* Images inside boxes */
.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Buttons inside boxes */
.bento-item button {
    padding: 10px 20px;
    border: none;
    background-color: #0077ff;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.bento-item button:hover {
    background-color: #005fcc;
}

/* Footer with social links */

footer {
    position: sticky;     /* makes it stick */
    bottom: 0;            /* stick to bottom */
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

footer a {
    color: #333;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

footer a:hover {
    color: #0077ff;
    transform: scale(1.2);
}


/* About Us content */
.about-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    margin: 20px 40px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    line-height: 1.6;
}

.about-content h1 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #0077ff;
}


/* Back to Dashboard button */

.back-btn {
    margin: 20px 40px 0;
}

.back-btn a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0077ff;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
}

.back-btn a:hover {
    background-color: #005fcc;
    transform: translateY(-2px);
}


/* Responsive */
@media (max-width: 768px) {
    main {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        grid-auto-rows: 120px;
    }
}

@media (max-width: 480px) {
    header {
        justify-content: center;
    }
    main {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        grid-auto-rows: 100px;
        padding: 10px 20px;
    }
    footer {
        flex-wrap: wrap;
    }
}





