/* Split Portfolio Theme Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%) !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Carousel */
.carousel-img {
    height: 600px;
    object-fit: cover;
    filter: brightness(0.85);
    transition: var(--transition);
}

.carousel-item:hover .carousel-img {
    filter: brightness(1);
    transform: scale(1.02);
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 3rem 2rem;
    border-radius: 10px;
    left: 10%;
    right: 10%;
    bottom: 10%;
}

.carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Modern Card Design */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    background: var(--bg-white);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.card-text {
    color: var(--text-light);
    line-height: 1.8;
}

.card-img-top {
    transition: var(--transition);
    border-radius: 15px 15px 0 0;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Split Layout for Profile Section */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .split-section {
        grid-template-columns: 1fr;
    }
}

/* Profile Cards */
.profile-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, #f8f9fa 100%);
    border-left: 4px solid var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.profile-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

/* Testimoni Section - Modern Design */
.testimoni-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.testimoni-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.testimoni-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
}

.testimoni-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: var(--secondary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimoni-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.testimoni-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.testimoni-author {
    flex: 1;
}

.testimoni-author strong {
    color: var(--text-dark);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.testimoni-author small {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimoni-rating {
    text-align: right;
}

.rating-stars {
    font-size: 1.2rem;
    color: #ffc107;
    margin-bottom: 0.25rem;
}

.testimoni-text {
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Agenda List */
.agenda-list {
    list-style: none;
    padding: 0;
}

.agenda-item {
    background: var(--bg-white);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.agenda-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.agenda-item h6 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.agenda-item small {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Berita Cards */
.berita-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.berita-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.berita-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.berita-card .card-text {
    flex: 1;
}

/* Struktur Organisasi Table */
.table {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: white;
}

.table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    backdrop-filter: blur(10px);
}

.btn-light:hover {
    background: white;
    transform: translateY(-2px);
}

/* Badge */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Rating Stars */
.rating-star {
    transition: var(--transition);
    cursor: pointer;
}

.rating-star:hover,
.rating-star.active {
    color: #ffc107 !important;
    transform: scale(1.2);
}

/* Footer - Sticky */
footer {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: white;
    padding: 3rem 0;
    margin-top: auto;
    width: 100%;
}

footer h5 {
    color: white;
    margin-bottom: 1rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* Dark Mode Styles */
[data-theme="dark"] {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] .card {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #404040;
}

[data-theme="dark"] .card-title {
    color: #e0e0e0;
}

[data-theme="dark"] .card-text {
    color: #b0b0b0;
}

[data-theme="dark"] .table {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

[data-theme="dark"] .table-hover tbody tr:hover {
    background-color: #3a3a3a;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #404040;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: var(--secondary-color);
}

[data-theme="dark"] .modal-content {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: #404040;
}

[data-theme="dark"] .agenda-item {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

[data-theme="dark"] .testimoni-card {
    background: rgba(45, 45, 45, 0.95);
    color: #e0e0e0;
}

[data-theme="dark"] .profile-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-img {
        height: 400px;
    }
    
    .carousel-caption h5 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .testimoni-section {
        padding: 2rem 0;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Section Spacing */
.section-spacing {
    margin: 4rem 0;
}

/* Search Input */
#searchAnggota {
    max-width: 300px;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

#searchAnggota:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
