:root {
    --gold: #d8a31a;
    --gold-soft: #fff4cf;
    --ink: #15171a;
    --muted: #667085;
    --line: #e6e8ec;
    --paper: #ffffff;
    --surface: #f6f7f9;
    --charcoal: #111827;
    --shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
    --transition: all 0.25s ease;
}

* {
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(216, 163, 26, 0.10), transparent 28rem),
        linear-gradient(180deg, #fff 0%, #f7f8fb 42%, #fff 100%);
}

h1,
h2,
h3,
h4,
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

a {
    transition: var(--transition);
}

.section-pad {
    padding: 80px 0;
}

.surface-section {
    background:
        linear-gradient(180deg, rgba(246, 247, 249, 0.96), rgba(246, 247, 249, 0.98)),
        repeating-linear-gradient(135deg, rgba(17, 24, 39, 0.03) 0 1px, transparent 1px 18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--gold);
}

.section-heading {
    max-width: 760px;
    margin-inline: auto;
}

.section-heading p {
    margin: 14px auto 0;
    max-width: 640px;
    color: var(--muted);
}

#mainNav {
    padding: 14px 0;
    background: rgba(17, 24, 39, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
}

.navbar-brand strong {
    color: var(--gold);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--charcoal);
    background: var(--gold);
}

.nav-link {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.84rem;
    font-weight: 700;
}

.nav-link:hover,
.admin-login-link {
    color: #fff !important;
}

.nav-cta,
.btn {
    border-radius: 8px;
}

.btn-warning {
    color: var(--charcoal);
    background: var(--gold);
    border-color: var(--gold);
}

.btn-warning:hover {
    color: var(--charcoal);
    background: #c69113;
    border-color: #c69113;
}

.btn-dark {
    background: var(--charcoal);
    border-color: var(--charcoal);
}

.hero-section {
    min-height: 88vh;
    position: relative;
    overflow: hidden;
}

.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background: url('img/9.jpg') center/cover no-repeat;
    transform: scale(1.04);
    animation: cinematicSweep 24s ease-in-out infinite alternate;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(8, 12, 20, 0.9) 0%, rgba(8, 12, 20, 0.72) 46%, rgba(8, 12, 20, 0.28) 100%),
        linear-gradient(0deg, rgba(8, 12, 20, 0.82) 0%, rgba(8, 12, 20, 0) 42%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 760px;
}

.hero-content h1 {
    line-height: 1.02;
}

.hero-content .lead {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.82);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 620px;
    margin-top: 46px;
}

.hero-metrics div {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.hero-metrics strong {
    display: block;
    color: #fff;
    font-size: 1.35rem;
}

.hero-metrics span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
}

.service-card {
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 8px 30px rgba(17, 24, 39, 0.04);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.icon-circle {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--charcoal);
    background: var(--gold-soft);
    font-size: 1.35rem;
}

.about-carousel {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

#about .carousel-item img {
    height: 460px;
    object-fit: cover;
}

.experience-badge {
    z-index: 2;
    min-width: 150px;
    padding: 20px 24px;
    border-radius: 8px;
    color: var(--charcoal);
    background: var(--gold);
    box-shadow: var(--shadow);
}

.project-card {
    min-height: 300px;
    cursor: zoom-in;
    border-radius: 8px;
    background: #111;
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.1);
}

.project-card img {
    display: block;
    height: 300px;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0) 30%, rgba(17, 24, 39, 0.88) 100%);
    opacity: 1;
    transition: var(--transition);
}

.project-overlay small {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.project-card:hover img {
    transform: scale(1.06);
}

.project-tag {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--charcoal);
    background: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
}

.form-control {
    min-height: 46px;
    border-radius: 8px;
    border-color: var(--line);
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.22rem rgba(216, 163, 26, 0.18);
}

.admin-only {
    display: none;
}

body.admin-logged-in .admin-only {
    display: block;
}

body.admin-logged-in li.admin-only {
    display: list-item;
}

.admin-panel {
    padding: 24px;
    border: 1px solid rgba(216, 163, 26, 0.34);
    border-left: 5px solid var(--gold);
    border-radius: 8px;
    background: #fffdf6;
    box-shadow: 0 10px 35px rgba(17, 24, 39, 0.06);
}

.admin-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-thumb {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.admin-thumb img {
    width: 100%;
    height: 86px;
    object-fit: cover;
}

.admin-thumb small {
    display: block;
    padding: 8px 10px;
    color: var(--muted);
    font-weight: 700;
}

.admin-thumb .btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
}

.seo-panel {
    background:
        linear-gradient(135deg, rgba(255, 253, 246, 0.96), rgba(255, 255, 255, 0.98)),
        radial-gradient(circle at top right, rgba(216, 163, 26, 0.16), transparent 18rem);
}

.seo-panel .form-label {
    color: var(--charcoal);
    font-size: 0.88rem;
}

.seo-save-state {
    min-width: 96px;
    color: #198754;
    font-size: 0.86rem;
    font-weight: 800;
    text-align: right;
}

.upload-zone {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1.5px dashed rgba(17, 24, 39, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: var(--transition);
}

.upload-zone i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--charcoal);
    background: var(--gold-soft);
    font-size: 1.2rem;
}

.upload-zone strong,
.upload-zone span {
    display: block;
}

.upload-zone span {
    color: var(--muted);
    font-size: 0.86rem;
}

.upload-zone .btn {
    margin-left: auto;
    white-space: nowrap;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--gold);
    background: #fffaf0;
    box-shadow: 0 12px 30px rgba(216, 163, 26, 0.12);
}

.upload-zone.uploading {
    opacity: 0.72;
    pointer-events: none;
}

.upload-zone.uploaded {
    border-color: #198754;
    background: #f2fbf6;
}

.delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-drawer .offcanvas-header {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.notification-drawer .offcanvas-body {
    background: var(--surface);
}

.nav-pills .nav-link {
    color: var(--muted) !important;
    border-radius: 8px;
}

.nav-pills .nav-link.active {
    color: var(--charcoal) !important;
    background: var(--gold);
}

.message-card {
    margin-bottom: 14px;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
}

.message-unread {
    border-left: 5px solid #dc3545;
}

.modal-content,
.login-card {
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.modal-head-dark {
    color: #fff;
    background: var(--charcoal);
}

.site-footer {
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.9)),
        url('img/8.jpg') center/cover no-repeat;
}

.contact-card {
    padding: 28px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.contact-info .dropdown-toggle::after {
    color: var(--gold);
}

.contact-info .dropdown-menu {
    min-width: 210px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--gold);
    border-radius: 8px;
}

.nav-link .badge {
    font-size: 0.65rem;
    padding: 0.35em 0.5em;
}

.animate-fade-in {
    animation: fadeIn 0.7s ease both;
}

@keyframes cinematicSweep {
    from {
        transform: scale(1.04) translate(0, 0);
    }

    to {
        transform: scale(1.12) translate(-1.5%, -1%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        padding-top: 16px;
    }

    .nav-link {
        margin: 4px 0;
    }

    .hero-section {
        min-height: auto;
        padding: 120px 0 70px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    #about .carousel-item img {
        height: 360px;
    }
}

@media (max-width: 576px) {
    .section-pad {
        padding: 56px 0;
    }

    .hero-content h1 {
        font-size: 2.35rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .project-card,
    .project-card img {
        height: 260px !important;
        min-height: 260px;
    }

    .admin-panel,
    .contact-card {
        padding: 18px;
    }

    .upload-zone {
        align-items: flex-start;
        flex-direction: column;
    }

    .upload-zone .btn {
        width: 100%;
        margin-left: 0;
    }
}
