/* Reset and Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header */
header {
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 1.5em;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

header.scrolled {
    padding: 1em;
    background-color: rgba(44, 62, 80, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 1em;
    animation: slideInLeft 0.8s ease-out;
}

.navbar .logo h1 {
    font-size: 1.5em;
    font-weight: 600;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 2em;
    animation: slideInRight 0.8s ease-out;
}

.navbar .nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.navbar .nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(./gambar/cover.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 0;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-grid {
    display: flex;
    gap: 2em;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
}

.service-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    margin-bottom: 2em;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: center;
}

.service-content img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: heroContent 1s ease-out 0.5s forwards;
}

@keyframes heroContent {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h2 {
    font-size: 3em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 2em;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-btn {
    display: inline-block;
    padding: 1em 2em;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background-color: #2980b9;
}

/* Services Section */
.services {
    padding: 4em 2em;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    margin-top: 2em;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.service-container {
    background: white;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 2em;
}

.services .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
}

.services .col-md-6 {
    flex: 1;
    min-width: 300px;
}

.service-content img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
}

.service-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: top;
}

.service-container:hover::before {
    transform: scaleY(1);
}

.service-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-container h3 {
    color: #2c3e50;
    margin-bottom: 1em;
    font-size: 1.5em;
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    text-align: center;
}

.service-content p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 1em;
}

.service-content img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-grid {
    display: flex;
    gap: 2em;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
}

.service-container {
    flex: 1;
    min-width: 300px;
    max-width: calc(50% - 1em);
    margin-bottom: 0;
    background: white;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Tupoksi Section */
.tupoksi {
    padding: 4em 2em;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.tupoksi h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2em;
    font-size: 2.5em;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out;
}

.tupoksi .container {
    max-width: 1200px;
    margin: 0 auto;
}

.tupoksi table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 15px;
    margin-top: 2em;
}

.tupoksi td {
    background: white;
    padding: 1.5em;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    vertical-align: top;
    transition: all 0.3s ease;
}

.tupoksi td:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tupoksi td strong {
    display: block;
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 1em;
    text-align: center;
}

.tupoksi td li {
    color: #666;
    margin-bottom: 0.8em;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5em;
    list-style: none;
}

.tupoksi td li:before {
    content: '•';
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .tupoksi table {
        display: block;
    }
    
    .tupoksi tr {
        display: flex;
        flex-direction: column;
        gap: 1em;
        margin-bottom: 1em;
    }
    
    .tupoksi td {
        width: 100%;
    }
}

/* Profile Section */
.profile {
    padding: 4em 2em;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.profile h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2em;
    font-size: 2.5em;
    font-weight: 600;
}

.profile-container {
    display: flex;
    gap: 4em;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.profile-left {
    flex: 2;
    opacity: 1;
    transform: none;
    animation: slideInLeft 0.8s ease-out;
}

.profile-right {
    flex: 1;
    opacity: 1;
    transform: none;
    animation: slideInRight 0.8s ease-out;
}

.service-container {
    opacity: 1 !important;
    transform: none !important;
    animation: fadeInUp 0.8s ease-out;
}

.profile-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-table td {
    padding: 1.5em;
    border-bottom: 1px solid #eee;
}

.profile-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
    width: 30%;
}

.profile-logo {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-logo:hover {
    transform: scale(1.05);
}

/* All Photos Section Styles */
.all-photos-section {
    background: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    margin: 3em auto;
    max-width: 1000px;
}

.all-photos-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1em;
}

.all-photos-section .carousel {
    margin: 20px auto;
    max-width: 800px;
}

/* Carousel Fade Effect */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
    position: relative;
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

/* Carousel Styles */
.all-photos-section .carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.all-photos-section .carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 15px;
    bottom: 20px;
}

.all-photos-section .carousel-control-prev,
.all-photos-section .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.all-photos-section .carousel-control-prev {
    left: 20px;
}

.all-photos-section .carousel-control-next {
    right: 20px;
}

.all-photos-section .carousel-indicators {
    bottom: -40px;
}

.all-photos-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Documentation Section */
.dokumentasi {
    background-color: #ecf0f1;
    padding: 50px 20px;
    text-align: center;
}

.dokumentasi .carousel-container {
    position: relative;
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

.dokumentasi .carousel {
    display: flex;
    transition: transform 1s ease;
}

.dokumentasi .carousel img {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 10px auto;
    display: inline-block;
    object-fit: cover;
    border-radius: 16px;
}

.dokumentasi .prev,
.dokumentasi .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    border: none;
    padding: 50px;
    cursor: pointer;
    z-index: 10;
}

.dokumentasi .prev {
    left: 0;
}

.dokumentasi .next {
    right: 0;
}

/* Container for side-by-side sections */
.container-duo-section {
    display: flex;
    gap: 2em;
    padding: 2em;
    background-color: #f8f9fa;
    max-width: 1200px;
    margin: 0 auto;
}

/* Pengurus Section */
.pengurus {
    flex: 1;
    background: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pengurus-content {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.pengurus-info table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1em;
}

.pengurus-info table td {
    padding: 1em;
    border-bottom: 1px solid #eee;
}

.pengurus-info table tr:last-child td {
    border-bottom: none;
}

.video-section {
    margin-top: 1em;
}

.video-section iframe {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.video-caption {
    margin-top: 1em;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* Hubungi Section */
.hubungi {
    flex: 1;
    background: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    padding: 1em;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1em;
}

.info-item i {
    font-size: 1.5em;
    color: #2c3e50;
    width: 30px;
    text-align: center;
}

.info-item p {
    margin: 0;
    color: #333;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.form-group label {
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    padding: 0.75em;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.contact-form button {
    background-color: #2c3e50;
    color: white;
    padding: 1em 2em;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.contact-form button:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .container-duo-section {
        flex-direction: column;
        padding: 1em;
    }
    
    .video-section iframe {
        height: 250px;
    }
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
}

footer .footer-links,
footer .footer-media-partners,
footer .footer-contact {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
