* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    padding-left: 0;
    padding-right: 0;
}

.mx-auto.max-w-6xl,
.mx-auto.max-w-4xl,
.mx-auto.max-w-3xl {
    width: 90%;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.background-grid {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(15, 109, 87, 0.10), transparent 34%),
        radial-gradient(circle at bottom right, rgba(15, 109, 87, 0.08), transparent 30%),
        linear-gradient(180deg, #f4f7f3 0%, #f8fbf9 100%);
    z-index: 0;
}

.background-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.012) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black 20%, transparent 90%);
}

.hero-shape {
    position: absolute;
    inset: -1.2rem;
    border-radius: 2rem;
    background: linear-gradient(140deg, rgba(63, 94, 251, 0.55), rgba(255, 107, 74, 0.35));
    filter: blur(28px);
    z-index: -1;
    animation: floatShape 7s ease-in-out infinite;
}

.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.58));
    backdrop-filter: blur(12px);
}

.service-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.62);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.35);
}

.service-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.service-card p {
    margin: 0.85rem 0 0;
    color: #cbd5e1;
    line-height: 1.6;
}

.gallery-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.4rem;
    padding: 1.2rem;
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(8px);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
    background: transparent;
    overflow-y: auto;
}

.modal-card {
    width: min(520px, 92vw);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 1.5rem;
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.58), rgba(30, 41, 59, 0.52));
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(16px);
}

.modal-deny {
    animation: modalDeny 0.25s ease;
}

.reveal-up {
    opacity: 0;
    transform: translateY(26px);
    animation: revealUp 0.9s cubic-bezier(0.2, 0.65, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.38s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatShape {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes modalDeny {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-6px);
    }
    50% {
        transform: translateX(6px);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 767px) {
    .background-grid::before {
        background-size: 28px 28px;
    }
}

/* ===== Admin shell ===== */
.admin-shell {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: 264px;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 12px 0 32px rgba(15, 23, 42, 0.025);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    color: #0f172a;
}

.admin-sidebar.is-open {
    transform: translateX(0);
}

.admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(2px);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.9rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #475569;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-nav-link:hover {
    background: rgba(15, 109, 87, 0.06);
    color: #0d5c4b;
    transform: translateX(1px);
}

.admin-nav-link.is-active {
    background: rgba(15, 109, 87, 0.08);
    color: #0d5c4b;
    box-shadow: inset 3px 0 0 #0d5c4b;
}

.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.admin-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 3rem;
}

.admin-flash {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1.1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
}

.admin-flash--ok {
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.admin-flash--error {
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
}

.admin-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.admin-card:hover {
    border-color: rgba(15, 23, 42, 0.14);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.admin-field {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #ffffff;
    padding: 0.8rem 1rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-field:hover {
    border-color: rgba(71, 85, 105, 0.6);
}

.admin-field:focus {
    border-color: rgba(15, 23, 42, 0.4);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
    background: #ffffff;
}

.admin-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.admin-form-help {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #64748b;
}

.admin-form-error {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(254, 242, 242, 0.9);
    padding: 0.9rem 1rem;
    color: #991b1b;
    font-size: 0.875rem;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.85rem;
    padding: 0.7rem 1.25rem;
    font-weight: 600;
    transition: filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.admin-btn--primary {
    background: linear-gradient(135deg, #0d5c4b 0%, #0f6d57 100%);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(13, 92, 75, 0.18);
}

.admin-btn--primary:hover {
    filter: brightness(1.04);
}

.admin-btn--ghost {
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
    background: #ffffff;
}

.admin-btn--ghost:hover {
    border-color: rgba(15, 23, 42, 0.18);
    background: rgba(15, 23, 42, 0.02);
}

@media (min-width: 1024px) {
    .admin-sidebar {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 264px;
    }

    .admin-overlay {
        display: none !important;
    }
}
