:root {
    --brand-dark: #0d1b2a;
    --brand-dark-soft: #1b263b;
    --brand-accent: #d9b24c;
    --brand-accent-hover: #c69d3a;
    --brand-light: #f8fafc;
    --text-main: #1f2937;
    --text-muted: #6b7280;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--brand-dark);
    font-weight: 800;
    line-height: 1.25;
}

p, .text-muted {
    color: var(--text-muted) !important;
}

.site-body { min-height: 100vh; display: flex; flex-direction: column; }
.site-body footer { margin-top: auto; }

.section-space { padding: 5rem 0; }
.section-title { margin-bottom: 2.25rem; font-weight: 800; color: var(--brand-dark); letter-spacing: 0.2px; }
.hero-section + .section-space { padding-top: 2.5rem; }

.btn-brand {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
    font-weight: 700;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
    color: #fff;
}

.btn-outline-light:hover { color: var(--brand-dark); }

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-dark), #132b45);
    color: #fff;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-body.inner-page .hero-section {
    min-height: 33vh;
    min-height: 33svh;
}

.hero-section .container { position: relative; z-index: 2; width: 100%; }
.hero-background-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; z-index: 0; display: block; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(13, 27, 42, 0.85), rgba(13, 27, 42, 0.55)); z-index: 1; }

.hero-content { position: relative; z-index: 2; max-width: 860px; text-align: center; color: #fff; }
.hero-content h1 { color: #fff; font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; }
.hero-content p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.9) !important; max-width: 720px; margin: 0 auto 2rem; }

.card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .12); }

.service-head { display: flex; align-items: center; gap: 0.9rem; }
.service-icon { font-size: 1.6rem; color: #000; line-height: 1; }

.service-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.service-icon-wrap {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background-color: rgba(217, 178, 76, 0.16);
    color: var(--brand-accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.service-card .card-title { color: var(--brand-dark); font-weight: 700; }
.service-card .card-text { color: var(--text-muted); margin-bottom: 1.4rem; text-align: justify; }
.service-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block;
}

.projects-section { background: var(--brand-light); }

.project-card {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; line-height: 0; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.82), rgba(13, 27, 42, 0.28));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease;
}

.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-media img { transform: scale(1.06); }

.project-overlay a {
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    backdrop-filter: blur(2px);
}

.project-meta { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0.7rem; }
.project-description { text-align: justify; }
.project-gallery .carousel-item img,
.project-gallery-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-gallery .carousel-control-prev-icon,
.project-gallery .carousel-control-next-icon {
    background-size: 60% 60%;
}

.stats-section { background: #fff; }
.stat-card { border-radius: 1rem; border: 1px solid #e9eef5; padding: 1.75rem 1.25rem; text-align: center; height: 100%; }
.stat-number { font-size: 2.1rem; font-weight: 800; color: var(--brand-dark); line-height: 1.1; }
.stat-label { margin-top: 0.45rem; color: var(--text-muted); font-weight: 500; }

.cta-band {
    background: #fff;
    color: var(--text-main);
}
.cta-band h2 { color: var(--brand-dark); font-weight: 800; margin-bottom: 0.75rem; }
.cta-band p { color: var(--text-muted) !important; margin-bottom: 1.5rem; }

.login-page { min-height: 100vh; }
.brand-logo-wrap { padding-top: 0; padding-bottom: 0; }
.brand-logo { height: 56px; width: auto; display: block; }
.footer-logo { height: 76px; width: auto; display: block; }
.site-dark-bg { background-color: #000 !important; }
.text-justified { text-align: justify; }
.site-dark-bg h1,
.site-dark-bg h2,
.site-dark-bg h3,
.site-dark-bg h4,
.site-dark-bg h5,
.site-dark-bg h6 {
    color: #fff;
}

.site-dark-bg p,
.site-dark-bg .small {
    color: rgba(255, 255, 255, 0.82) !important;
}

@media (max-width: 991.98px) {
    .section-space { padding: 4rem 0; }
    .hero-section { min-height: 100vh; min-height: 100svh; }
    .site-body.inner-page .hero-section { min-height: 34vh; min-height: 34svh; }
}
