/* Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Trebuchet MS, sans-serif;
    background: #f5f1ed;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
nav {
    background: #2c2c2c;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: #f5f1ed;
    margin-right: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #d4a574;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: #fffaf5;
    min-height: calc(100vh - 60px);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #3a3a3a;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

strong {
    color: #2c2c2c;
}

/* Grid for Gallery */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.card h3 {
    padding: 1rem;
    font-size: 1rem;
    color: #2c2c2c;
}

/* Icon Page */
.icon-detail {
    max-width: 700px;
    margin: 0 auto;
}

.icon-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.icon-images img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f1ed;
    padding: 1rem;
}

.icon-info {
    background: #f5f1ed;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 2rem 0;
}

.icon-info p {
    margin-bottom: 1rem;
}

.icon-info strong {
    display: inline-block;
    min-width: 120px;
    color: #2c2c2c;
}

/* Links */
a {
    color: #d4a574;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c4945f;
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: #e8dfd6;
    border-radius: 4px;
    color: #2c2c2c;
    font-weight: 500;
    transition: background 0.3s ease;
}

.back-link:hover {
    background: #d4a574;
    color: white;
    text-decoration: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #e8dfd6;
    color: #666;
    font-size: 0.9rem;
}

/* Modal Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.close {
    position: fixed;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #d4a574;
}
