/* ============================================
   DESA LUBUK SAKAT - MODERN CSS 2026
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background-color: #fff;
    color: #000;
    overflow-x: hidden !important;
    font-size: 16px;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-weight: bold;
}

p {
    font-size: 100%;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #064500;
}

a:hover {
    color: #000;
    text-decoration: none !important;
}

a:focus {
    outline: none;
    text-decoration: none !important;
    color: #007b17 !important;
}

/* CSS Variables */
:root {
    --c1: #0081b3;
    --c2: #02b84e;
    --bg1: #0081b3;
    --bg2: #02b84e;
    --bg3: #004e6c;
    --bgsoft1: #5bbee4;
    --bgsoft2: #63e699;
    --c-white: #ffffff;
    --c-grey: #dbdbdb;
    --bg-white: #ffffff;
    --bg-greymid: #dbdbdb;
    --bg-greysoft: #e0e0e0;
    --border-white: #ffffff;
    --border-grey: #bdbdbd;
    --bg-c1: var(--bg1);
    --bg-gradtop: linear-gradient(to top, var(--bg1), var(--bg2));
    --bg-gradhor: linear-gradient(to right, var(--bg1), var(--bg2));
}

/* Utility Classes */
.bg-c1 {
    background-color: var(--bg1) !important;
    color: var(--c-white) !important;
}

.bg-c1:hover {
    background-color: #8769b0;
    color: var(--c-white);
}

.bg-c2 {
    background-color: var(--bg2);
    color: var(--c-white);
}

.bg-c2:hover {
    background-color: #05400D;
    color: var(--c-white);
}

.bgyellow {
    background: #244012;
    height: 34px !important;
    color: var(--c-white);
}

.bgyellow:hover {
    background: #fe5d00;
    color: var(--c-white);
}

.relative {
    position: relative;
}

.relhid {
    position: relative;
    overflow: hidden;
}

.difle-c {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.difle-l {
    display: flex !important;
    justify-content: left;
    align-items: center;
}

.difle-r {
    display: flex !important;
    justify-content: right;
    align-items: center;
}

.colscroll {
    width: 100%;
    overflow-y: scroll;
    scrollbar-width: thin;
    height: 100%;
}

.colscroll::-webkit-scrollbar {
    width: 7px;
}

.colscroll::-webkit-scrollbar-track {
    background: transparent;
}

.colscroll::-webkit-scrollbar-thumb {
    background: var(--bg-greymid);
    border-radius: 7px;
}

.grider {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
}

.margin-master {
    margin: 0 5vw !important;
}

.mlr-min10 {
    margin-left: -10px;
    margin-right: -10px;
}

.mlr-min1vh {
    margin-left: -1vh;
    margin-right: -1vh;
}

.mainmargin {
    margin-left: -1vw;
    margin-right: -1vw;
}

/* Container & Layout */
.full-container {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    min-height: 100vh;
    background: var(--bg-greymid);
}

.full-container:fullscreen {
    width: 100vw;
    height: 100vh;
}

.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80vh;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.bg-image:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(to top, var(--bg-greymid) 20%, rgba(0,0,0,0.1) 50%);
    z-index: 11;
}

.bgload {
    animation: slide 3s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, var(--bg1) 50%, var(--bg2) 50%);
    bottom: 25vh;
    left: -55%;
    opacity: .3;
    position: fixed;
    right: -55%;
    top: 0;
    z-index: 10;
}

.bgload2 {
    animation-direction: alternate-reverse;
    animation-duration: 4s;
}

.bgload3 {
    animation-duration: 5s;
}

/* Header & Logo */
.headpage {
    position: relative;
    width: 100%;
}

.logo {
    height: 20vh;
}

.logo img {
    width: auto;
    height: 14vh;
    margin: 0 10px 0 0;
}

.logo h1 {
    position: relative;
    z-index: 5;
    font-size: 180%;
    letter-spacing: -1px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0 !important;
    padding: 0 !important;
    background-size: auto auto;
    background-clip: border-box;
    background-size: 200% auto;
    background-clip: text;
    text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textclip 6s linear infinite;
    background-image: linear-gradient(-225deg, #fff 0%, #ffd800 29%, #fff 67%, #ffd800 100%);
}

.logo p {
    font-size: 100%;
    margin: 5px 0 0;
    padding: 0;
    line-height: 1.1;
    font-weight: 500;
    color: var(--c-white);
}

/* Intro Section */
.intro {
    width: 100%;
    left: 0;
    position: absolute;
    overflow: hidden;
    text-align: center;
    top: 50%;
    -webkit-transform: translate3d(0, -50%, 0);
    -moz-transform: translate3d(0, -50%, 0);
    -ms-transform: translate3d(0, -50%, 0);
    -o-transform: translate3d(0, -50%, 0);
    transform: translate3d(0, -50%, 0);
}

.intro h3 {
    font-size: 180%;
    margin: 0 auto 30px;
    padding: 0;
    line-height: 1;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--c-white);
    text-shadow: 2px 1px 3px rgba(0,0,0,0.7);
    -webkit-text-stroke: 1px transparent;
}

.intro img {
    display: block;
    width: 60%;
    margin: 0 auto;
}

/* Area Sections */
.area-title {
    position: relative;
    width: calc(32% - 2vw);
    margin: 0 1vw 0;
    background: rgba(0,0,0,0.1);
    border-radius: 7px;
    border: rgba(0,0,0,0.2) 1px solid;
}

.area-content {
    position: relative;
    width: calc(68% - 2vw);
    margin: 0 1vw 0;
    background: rgba(0,0,0,0.1);
    border-radius: 7px;
    border: rgba(0,0,0,0.2) 1px solid;
}

.area-title:before, .area-content:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: 1.5vh;
    background: #fff;
    border-radius: 7px;
}

.area-title:before {
    background: linear-gradient(to top, var(--bg2), var(--bg1));
}

.area-title-inner {
    position: relative;
    margin: 1.5vh;
    z-index: 20;
    text-align: center;
    padding: 0;
    display: grid;
    box-sizing: border-box;
    overflow: hidden;
    height: 68vh;
}

.area-title-inner h2 {
    font-size: 100%;
    margin: 20px 0 0;
    padding: 0;
    line-height: 1.1;
    font-weight: 500;
    color: var(--c-white);
}

.area-title-bottom {
    margin: 0 0 15px;
}

.area-content-inner {
    position: relative;
    margin: 10px;
    z-index: 20;
    padding: 3vh 2vh;
}

/* Buttons */
.btn {
    margin: 0 !important;
    display: inline-block;
    padding: 12px 24px;
    background: var(--bg1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg2);
}

.btn-secondary:hover {
    background: #059669;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--bg1);
    color: var(--bg1);
}

.btn-outline:hover {
    background: var(--bg1);
    color: white;
}

.btn-logout {
    background: #ef4444;
}

.btn-logout:hover {
    background: #dc2626;
}

/* Forms */
.form-group {
    margin: 0 0 2vh !important;
}

.form-control {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.1;
    color: #515151;
    font-size: 95%;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    padding: 12px;
    width: 100%;
}

.form-control:focus {
    color: #000;
    border-color: #919191;
    box-shadow: none !important;
    outline: none;
}

textarea {
    padding: 10px !important;
    height: 10vh !important;
    width: 100%;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    resize: vertical;
}

/* Animations */
@keyframes textclip {
    to {
        background-position: 200% center;
    }
}

@keyframes slide {
    0% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(25%);
    }
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .area-title, .area-content {
        width: 100% !important;
        margin: 10px 0 !important;
    }
    
    .logo h1 {
        font-size: 150% !important;
    }
    
    .intro h3 {
        font-size: 150% !important;
    }
    
    .grider {
        justify-content: center;
    }
    
    .grider > div {
        width: 45% !important;
        margin: 10px !important;
    }
    
    .form-control {
        font-size: 16px !important;
    }
    
    .btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}

/* Mobile (480px - 767px) */
@media screen and (max-width: 767px) {
    body {
        font-size: 18px !important;
    }
    
    .logo {
        height: 15vh !important;
    }
    
    .logo h1 {
        font-size: 120% !important;
    }
    
    .logo p {
        font-size: 80% !important;
    }
    
    .intro h3 {
        font-size: 130% !important;
        margin: 15px auto 20px !important;
    }
    
    .area-title-inner, .area-content-inner {
        padding: 2vh 1vh !important;
    }
    
    .area-title-inner h2 {
        font-size: 90% !important;
    }
    
    .grider {
        flex-direction: column;
        align-items: center;
    }
    
    .grider > div {
        width: 90% !important;
        margin: 10px 0 !important;
    }
    
    .grider > div img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .form-group {
        margin: 15px 0 !important;
    }
    
    .form-control {
        font-size: 14px !important;
        padding: 10px !important;
    }
    
    .btn {
        padding: 10px 15px !important;
        font-size: 12px !important;
        width: 100% !important;
        margin: 10px 0 !important;
    }
    
    textarea {
        height: 8vh !important;
    }
    
    .headpage {
        padding: 20px 0 !important;
    }
    
    .bg-image {
        height: 60vh !important;
    }
    
    .full-container {
        padding: 20px 0 !
		
/* ============================================
   OPTIMASI LOADING SPEED
   ============================================ */

/* Kurangi Animasi Berat */
.bgload, .bgload2, .bgload3 {
    opacity: 0.1 !important;
    animation-duration: 5s !important;
}

/* Optimasi Transisi */
.service-card, .official-card {
    transition: transform 0.2s ease;
}

/* Lazy Loading Images */
img[loading="lazy"] {
    lazy: true;
}

/* Preload Font */
@font-face {
    font-family: 'Inter';
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}