/**
 * Sistem Informasi Gampong 
 * Main Stylesheet - Sky Blue Theme
 */

/* ===== Root Variables ===== */
:root {
    --primary-color: #5BBBF1;
    --primary-dark: #3A9DD3;
    --primary-light: #87CEF5;
    --secondary-color: #2C5F7D;
    --accent-color: #FFB347;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #F8FBFF;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(91, 187, 241, 0.15);
    --shadow-hover: 0 8px 30px rgba(91, 187, 241, 0.25);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Nunito Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

/* ===== Loading Screen ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2ecc71, #3498db);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(119, 199, 87, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(91, 187, 241, 0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand img {
    height: 45px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 8px 18px !important;
    margin: 0 5px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../img/header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.hero-section .header-section{
    position:absolute;
    bottom:-70px;
    left:0;
    width:100%;
    background:transparent;
}
.hero-section .official-frame:first-child{
    left:80px;
    bottom:-60px;
}

.hero-section .official-frame:last-child{
    right:80px;
    bottom:-60px;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s linear infinite;
}

@keyframes float {
    to { transform: translateY(-100px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease;
}

.btn-hero {
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(70, 206, 88, 0.2);
    transition: var(--transition);
    animation: fadeInUp 1.4s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    color: var(--primary-dark);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Section Title ===== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 15px;
}

/* ===== Card Styles ===== */
.card-custom {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-custom .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.card-custom:hover .card-img-top {
    transform: scale(1.05);
}

.card-custom .card-body {
    padding: 25px;
}

.card-custom .card-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

/* ===== Statistik Box ===== */
.stat-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 231, 158, 0.1) 0%, transparent 70%);
    transition: var(--transition);
}

.stat-box:hover::before {
    transform: scale(1.2);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-box .stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-box .stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Quick Links ===== */
.quick-link {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.quick-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    transform: translateY(-5px);
}

.quick-link i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.quick-link:hover i {
    color: var(--white);
    transform: scale(1.1);
}

.quick-link h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, var(--secondary-color), #52af26);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-widget h5 {
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--primary-light);
    padding-left: 8px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    margin: 0 5px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .stat-box {
        margin-bottom: 20px;
    }
}

/* ===== Utility Classes ===== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.btn-primary-custom {
    background: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== Animations ===== */
.fade-in {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
