/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

:root {
    --primary-blue: #004a8d;
    --secondary-blue: #0066b3;
    --accent-yellow: #ffd200;
    --text-dark: #333;
    --text-light: #fff;
}

/* Utility Bar */
.utility-bar {
    background-color: var(--primary-blue);
    padding: 8px 0;
    font-size: 0.9em;
}

.utility-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.utility-links {
    display: flex;
    gap: 20px;
}

.utility-links a {
    color: var(--text-light);
    text-decoration: none;
}

/* User Status Styles */
.user-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logged-in-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white !important;
    font-size: 0.9em;
}

.logged-in-info * {
    color: white !important;
}

.logged-in-info span {
    color: white !important;
}

.logged-in-info i {
    font-size: 1.1em;
    color: white !important;
}

.logged-in-info a {
    color: white !important;
    text-decoration: none;
}

.user-name {
    font-weight: 600;
    color: white !important;
}

.user-role {
    font-style: italic;
    opacity: 0.8;
    color: white !important;
}

.user-status .admin-link,
.user-status .logout-link,
.user-status .login-link {
    color: white !important;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 0.85em;
}

.user-status .admin-link:hover {
    background-color: var(--secondary-blue);
}

.user-status .logout-link:hover {
    background-color: #dc3545;
}

.user-status .login-link:hover {
    background-color: var(--secondary-blue);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .utility-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .utility-links {
        justify-content: center;
    }

    .user-status {
        justify-content: center;
        flex-wrap: wrap;
    }

    .logged-in-info {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

/* Header Styles */
header {
    background-color: var(--primary-blue);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 80px;
    width: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25),
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.logo img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 50%;
}

.identity h1 {
    font-size: 1.5em;
    color: var(--text-light);
    margin: 0;
}

.identity p {
    font-size: 0.9em;
    color: var(--accent-yellow);
    margin: 0;
}

.main-nav {
    position: relative;
}

.main-nav ul {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--text-light);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 100;
}

.dropdown-menu a {
    color: var(--text-dark);
    padding: 12px 15px;
    font-size: 0.9em;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5em;
    cursor: pointer;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* Main content styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background-image: url('../images/gedung.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-overlay {
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 60vh;
}

.welcome-card {
    background: transparent;
    padding: 40px;
    border-radius: 10px;
    box-shadow: none;
    max-width: 500px;
    margin-left: -500px;
    margin-right: auto;
    align-self: flex-start;
    position: relative;
    z-index: 2;
}

.welcome-text {
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 400;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: white;
    line-height: 1.2;
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: #00BCD4;
    margin-bottom: 20px;
}

.hero-description {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-about {
    background: #00BCD4;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-about:hover {
    background: #00ACC1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.3), 0 0 20px rgba(0, 188, 212, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid #00BCD4;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.service-card:hover .service-icon.blue {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.service-card:hover .service-icon.yellow {
    background: linear-gradient(135deg, #F5A623 0%, #E09900 100%);
}

.service-card:hover .service-icon.red {
    background: linear-gradient(135deg, #D0021B 0%, #B8001A 100%);
}

.service-card:hover .service-icon.blue-light {
    background: linear-gradient(135deg, #50C8E8 0%, #3BB5D6 100%);
}

.service-card:hover h3 {
    color: #00BCD4;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
    transition: all 0.3s ease;
}

.service-icon.blue {
    background: #4A90E2;
}

.service-icon.yellow {
    background: #F5A623;
}

.service-icon.red {
    background: #D0021B;
}

.service-icon.blue-light {
    background: #50C8E8;
}

.service-card h3 {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .welcome-card {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        padding: 0 20px;
    }

    .service-card {
        padding: 25px 15px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .service-card h3 {
        font-size: 14px;
    }
}

/* Pejabat Section */
.pejabat-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.pejabat-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.pejabat-header h1 {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.2;
}

.pejabat-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.pejabat-description {
    padding-left: 20px;
}

.pejabat-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
    text-align: justify;
}

.btn-sk {
    background: #00BCD4;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(0, 188, 212, 0.3);
}

.btn-sk:hover {
    background: #00ACC1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.staff-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.staff-photo {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-card:hover .staff-photo img {
    transform: scale(1.05);
}

.staff-info {
    padding: 20px 15px;
    background: #A8E6CF;
    color: #333;
}

.staff-info h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #333;
}

.staff-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.staff-info h5 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #333;
}

.staff-info h6 {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.staff-info p {
    font-size: 13px;
    margin: 0;
    color: #555;
    font-weight: 500;
}

/* Responsive Design for Pejabat Section */
@media (max-width: 1024px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .pejabat-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .pejabat-description {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pejabat-header h1 {
        font-size: 36px;
    }

    .pejabat-header h2 {
        font-size: 20px;
    }

    .staff-photo {
        height: 200px;
    }

    .staff-info {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pejabat-section {
        padding: 60px 0;
    }

    .pejabat-header h1 {
        font-size: 28px;
    }

    .pejabat-header h2 {
        font-size: 18px;
    }
}

/* Footer Styles */
footer {
    background-color: var(--primary-blue);
    padding: 40px 0 20px;
    color: var(--text-light);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-yellow);
}

.contact-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin: 10px 0;
}

.quick-links a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-links a:hover {
    color: var(--accent-yellow);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-yellow);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}