*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 25px;
    margin-top: 5px;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f3ef 50%, #fdfcfa 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    opacity: 0;
    transition: opacity 1.05s ease-in;
}

body.loaded {
    opacity: 1;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a4d3e 0%, #15423a 50%, #0f3330 100%);
    width: 100%;
    padding: 20px 30px;
    border-radius: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 8px 40px rgba(139, 119, 85, 0.15), 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.headersub {
    color: #d4b872;
    font-size: 14px;
    text-align: center;
    width: 100%;
    margin: 5px 0 0 0;
    font-weight: 400;
    letter-spacing: 1px;
}

.logo {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.header-title {
    width: 100%;
    text-align: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Items Grid */
.items {
    background: transparent;
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
    column-count: 4;
    column-gap: 25px;
}

.items figure {
    margin: 0 0 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fdfcfa 100%);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(139, 119, 85, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.15);
    overflow: hidden;
    position: relative;
    break-inside: avoid;
}

.items figure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.items figure:hover::before {
    opacity: 1;
}

.items figure:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(201, 169, 98, 0.25);
    border-color: rgba(201, 169, 98, 0.4);
}

.items img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(139, 119, 85, 0.15);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(201, 169, 98, 0.2);
}

.items img:hover {
    transform: scale(1.03) rotateZ(1deg);
    box-shadow: 0 20px 40px rgba(201, 169, 98, 0.35);
    border-color: #c9a962;
}

.items figcaption {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    color: #1a4d3e;
    margin-top: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Info Button */
.info-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #c9a962 0%, #d4b872 100%);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(201, 169, 98, 0.3);
    position: relative;
    z-index: 2;
    text-decoration: none;
    text-align: center;
}

.info-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(201, 169, 98, 0.45);
    background: linear-gradient(135deg, #1a4d3e 0%, #15423a 100%);
}

.info-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Footer Styles */
.footer {
    background: transparent;
    width: 100%;
    padding: 40px 30px;
    margin-top: 30px;
}

.footer-content {
    max-width: 100%;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a4d3e;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ffffff 0%, #fdfcfa 100%);
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 98, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 119, 85, 0.1);
}

.footer-link:hover {
    background: linear-gradient(135deg, #1a4d3e 0%, #15423a 100%);
    color: white;
    border-color: #c9a962;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 77, 62, 0.25);
}

.footer-link:hover i {
    color: #c9a962;
}

.footer-link i {
    font-size: 22px;
    color: #1a4d3e;
    transition: color 0.3s ease;
}

.footer-link span {
    font-weight: 500;
}

.footer-copyright {
    color: #4a5568;
    font-size: 13px;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 169, 98, 0.2);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    html, body {
        margin: 15px;
    }

    .header {
        padding: 15px 20px;
    }

    .logo {
        left: 20px;
    }

    .logo img {
        height: 50px;
    }

    .header-title {
        font-size: 22px;
        padding-left: 80px;
    }

    .items {
        padding: 20px;
        column-count: 3;
    }
}

@media (max-width: 768px) {
    html, body {
        margin: 10px;
    }

    .header {
        flex-direction: column;
        padding: 20px;
        border-radius: 20px;
    }

    .logo {
        position: static;
        transform: none;
        margin-bottom: 15px;
    }

    .logo img {
        height: 50px;
    }

    .header-title {
        font-size: 18px;
        padding-left: 0;
        letter-spacing: 1px;
    }

    .items {
        padding: 15px;
        column-count: 2;
        column-gap: 15px;
    }

    .items figure {
        padding: 15px;
        border-radius: 15px;
        margin-bottom: 15px;
    }

    .items img {
        height: auto;
        border-radius: 10px;
    }

    .items figcaption {
        font-size: 13px;
        margin-top: 10px;
    }

    .info-btn {
        padding: 10px 18px;
        font-size: 11px;
        margin-top: 12px;
    }

    .footer {
        padding: 30px 20px;
    }

    .footer-link {
        padding: 10px 20px;
        font-size: 14px;
    }

    .footer-link i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    html, body {
        margin: 8px;
    }

    .header {
        padding: 15px;
        border-radius: 15px;
    }

    .logo img {
        height: 40px;
    }

    .header-title {
        font-size: 16px;
    }

    .items {
        padding: 10px;
        column-count: 2;
        column-gap: 12px;
    }

    .items figure {
        padding: 12px;
        margin-bottom: 12px;
    }

    .items img {
        height: auto;
    }

    .items figcaption {
        font-size: 12px;
    }

    .info-btn {
        padding: 8px 14px;
        font-size: 10px;
        margin-top: 10px;
        letter-spacing: 0.5px;
    }

    .footer {
        padding: 25px 15px;
    }

    .footer-link {
        padding: 8px 15px;
        font-size: 13px;
    }

    .footer-copyright {
        font-size: 11px;
    }
}