/* Custom CSS for Humas UIKA Bogor Website - Light & Minimalist */

:root {
    --primary-color: #0066cc;
    --secondary-color: #00aa44;
    --accent-color: #ff6b35;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 2px 10px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

/* Header Seamless Integration */
.main-header,
.main-header.fixed-top {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.navbar,
.navbar-light {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Header Styles */
.top-bar {
    font-size: 0.9rem;
    background-color: #f8f9fa !important;
    border-bottom: 1px solid var(--border-color);
}

.top-bar .contact-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links a {
    transition: var(--transition);
    opacity: 0.7;
    color: var(--primary-color);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-text {
    line-height: 1.2;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    position: relative;
    color: var(--text-color);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Statistics Section */
.stats-section {
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    margin-top: -50px;
    z-index: 3;
}

.stats-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

/* If custom banner image is set, it will override the gradient */
.stats-banner-overlay[style*="background-image"] {
    background: none;
}

.stats-section .bg-dark {
    z-index: 2;
}

.stat-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(34, 197, 94, 0.3);
}

.stat-card h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    color: #22c55e !important; /* Bright green color */
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    color: #22c55e !important; /* Bright green to match the numbers */
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* News Section */
.news-section {
    padding: 5rem 0;
}

.news-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    margin-bottom: 1rem;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.news-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-features .feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 250px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    color: white;
}

.gallery-content h5 {
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-content {
    position: relative;
    margin-bottom: 2rem;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -10px;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-left: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.author-info h6 {
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.author-info small {
    color: var(--text-muted);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item h6 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-item p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Footer Styles */
.main-footer {
    background: #f8f9fa !important;
    border-top: 1px solid var(--border-color);
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-info .contact-item {
    margin-bottom: 1rem;
}

.contact-info .contact-item i {
    color: var(--primary-color);
}

.footer-links-inline a {
    text-decoration: none;
    transition: var(--transition);
}

.footer-links-inline a:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

/* Utility Classes */
.bg-primary {
    background: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.back-to-top:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.back-to-top.show {
    display: flex;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.whatsapp-float:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* Icon styles for images */
.social-icon {
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: brightness(0) invert(1);
}

.social-link:hover .social-icon {
    transform: scale(1.1);
    opacity: 0.8;
}

.navbar-nav .nav-link img {
    vertical-align: middle;
    filter: brightness(0) saturate(100%) invert(44%) sepia(8%) saturate(1426%) hue-rotate(202deg) brightness(95%) contrast(94%);
}

.navbar-nav .nav-link:hover img {
    filter: brightness(0) saturate(100%) invert(26%) sepia(95%) saturate(1743%) hue-rotate(213deg) brightness(98%) contrast(102%);
}

.navbar-nav .nav-link.active img {
    filter: brightness(0) saturate(100%) invert(26%) sepia(95%) saturate(1743%) hue-rotate(213deg) brightness(98%) contrast(102%);
}

.contact-item img {
    vertical-align: middle;
    filter: brightness(0) saturate(100%) invert(26%) sepia(95%) saturate(1743%) hue-rotate(213deg) brightness(98%) contrast(102%);
}

.btn-outline-primary img {
    filter: brightness(0) saturate(100%) invert(26%) sepia(95%) saturate(1743%) hue-rotate(213deg) brightness(98%) contrast(102%);
}

.btn-primary img {
    filter: brightness(0) invert(1);
}

.whatsapp-float img {
    filter: brightness(0) invert(1);
}

.back-to-top img {
    filter: brightness(0) invert(1);
}

/* Media queries for responsive icon sizing */
@media (max-width: 768px) {
    .navbar-nav .nav-link img,
    .contact-item img {
        width: 14px;
        height: 14px;
    }
    
    .social-icon {
        width: 20px;
        height: 20px;
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .back-to-top,
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        left: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

.bg-success {
    background-color: var(--secondary-color) !important;
}

.bg-warning {
    background-color: var(--accent-color) !important;
}

/* Search Modal */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    padding: 2rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Instagram Section */
.instagram-section {
    background-color: #ffffff;
}

.instagram-embed {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.instagram-embed iframe {
    border: none;
    border-radius: 15px;
}

/* Responsive Instagram */
@media (max-width: 768px) {
    .instagram-embed iframe {
        height: 400px !important;
    }
}

/* Statistics Section Enhancement */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-card h2 {
    color: white;
    font-weight: 700;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0;
}

/* Instagram Post Placeholder */
.instagram-post-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.instagram-post-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.placeholder-content {
    text-align: center;
}

.placeholder-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.placeholder-content p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Instagram showcase animation */
.instagram-showcase {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Instagram Iframe Container */
.instagram-iframe-container {
    max-width: 500px;
    margin: 0 auto;
}

.instagram-iframe-container iframe {
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-iframe-container iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.instagram-iframe-container .card {
    border-radius: 15px;
    overflow: hidden;
}

/* Responsive iframe */
@media (max-width: 768px) {
    .instagram-iframe-container iframe {
        height: 400px;
    }
}

/* Loading state for Instagram */
.instagram-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 15px;
    color: white;
}

.instagram-loading i {
    font-size: 2rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

