/* ===================================
   PKN Kejati Aceh - Frontend Styles
   =================================== */

/* Header Styles */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.bg-pkn-primary {
    background: #3c8dbc;
}

.navbar-brand {
    font-weight: 600;
    color: #fff !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    color: #fff !important;
}

.navbar-nav .nav-link:hover {
    color: #000 !important;
    transform: translateY(-2px);
}

.btn-login {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Hero/Banner Styles */
.hero-banner {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #3c8dbc 0%, #2e7db5 100%);
    /* Fallback gradient */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.hero-banner {
    transition: background-position 0.5s ease-in-out;
}

.hero-banner:hover {
    background-position: center top;
}

.hero-banner.hero-image-loaded {
    /* Additional styling when image is loaded */
    background-blend-mode: overlay;
}

.hero-banner.hero-image-fallback {
    /* Ensure fallback gradient is visible */
    background: linear-gradient(135deg, #3c8dbc 0%, #2e7db5 100%);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content .lead {
    font-size: 1.4rem;
    opacity: 0.9;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Content Styles */
.main-content {
    min-height: 60vh;
    padding: 60px 0;
}

/* Footer Styles */
.main-footer {
    background: #999999;
    color: #ffffff;
}

.main-footer h5 {
    color: #ffffff;
    font-weight: 600;
}

.main-footer a {
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-footer a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.main-footer .text-tagline {
    font-size: 0.9rem;
    color: #000000;
    margin-bottom: 20px;
}

.main-footer small.text-muted {
    color: #333333 !important;
}

.main-footer .text-muted {
    color: #333333 !important;
}

.main-footer .text-white {
    color: #ffffff !important;
}

.main-footer .dev-team {
    color: #333333 !important;
    font-size: 0.9rem;
}

.main-footer .website-terkait {
    color: #000000 !important;
    text-decoration-color: #000000 !important;
    font-size: 0.9rem;
}

.footer-logo {
    filter: none;
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.social-links a:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-3px);
    padding-left: 0;
}

/* Contact Info */
.contact-info p {
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    width: 20px;
    margin-top: 2px;
}

/* Footer Section Styles */
/* Visitor Stats */
.visitor-stats .stat-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.visitor-stats .stat-item:last-child {
    border-bottom: none;
}

.visitor-stats h6 {
    font-size: 0.9rem;
    font-weight: 600;
}

.visitor-stats .text-muted {
    font-size: 0.8rem;
}

/* Compact Stats */
.stat-item-small {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item-small:last-child {
    border-bottom: none;
}

.stat-item-small small {
    font-size: 0.75rem;
    line-height: 1.2;
    color: #333333;
}

.stat-item-small span {
    font-size: 1.1rem;
    color: #ffffff;
}

/* External Links */
.external-links a {
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.external-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.external-links i {
    width: 12px;
    font-size: 0.7rem;
}

/* Contact Section */
.contact-item {
    padding: 8px 0;
}

.contact-item h6 {
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-item .text-muted {
    font-size: 0.8rem;
    line-height: 1.4;
}

.contact-item i {
    width: 20px;
    font-size: 1.1rem;
}

/* Compact Contact */
.contact-item-small {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-item-small:last-child {
    border-bottom: none;
}

.contact-item-small small {
    font-size: 0.75rem;
    line-height: 1.2;
    color: #333333;
}

.contact-item-small span {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #ffffff;
}

/* Mini Items */
.stat-item-mini {
    padding: 3px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item-mini:last-child {
    border-bottom: none;
}

.stat-item-mini small {
    font-size: 0.7rem;
    line-height: 1.1;
    color: #333333;
}

.stat-item-mini span {
    font-size: 0.8rem;
    color: #ffffff;
}

.contact-item-mini {
    padding: 3px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item-mini:last-child {
    border-bottom: none;
}

.contact-item-mini small {
    font-size: 0.7rem;
    line-height: 1.1;
    color: #333333;
}

.contact-item-mini span {
    font-size: 0.8rem;
    line-height: 1.2;
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        font-size: 1.2rem;
    }

    .navbar-nav .nav-link {
        margin: 5px 0;
    }

    .main-content {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-banner {
        min-height: 400px;
        text-align: center;
    }

    .navbar-brand div {
        display: none;
    }
}

/* Additional Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, #007bff, #0056b3) 1;
}

/* Loading Animation */
.loading-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.nav-link:focus,
.btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}