/* Custom CSS untuk Kopma UNIB */
/* File: assets/css/custom.css */

:root {
    --kopma-primary: #2563eb;   /* Blue from logo */
    --kopma-secondary: #16a34a; /* Green from logo */
    --kopma-accent: #eab308;    /* Yellow from logo */
    --kopma-dark: #1e293b;
    --kopma-light: #f8fafc;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Gradient Background */
.bg-kopma-gradient {
    background: linear-gradient(135deg, var(--kopma-primary) 0%, var(--kopma-secondary) 100%);
}

.bg-kopma-gradient-reverse {
    background: linear-gradient(135deg, var(--kopma-secondary) 0%, var(--kopma-accent) 100%);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Custom Button Styles */
.btn-kopma-primary {
    background: linear-gradient(135deg, var(--kopma-primary), #1e40af);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-kopma-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-kopma-secondary {
    background: linear-gradient(135deg, var(--kopma-secondary), #15803d);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-kopma-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Hero Section Overlay */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.85) 0%,
        rgba(22, 163, 74, 0.85) 100%
    );
}

/* Animated Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--kopma-primary), var(--kopma-secondary), var(--kopma-accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Counter Stats */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--kopma-primary);
    line-height: 1;
}

/* Section Divider */
.section-divider {
    height: 2px;
    width: 80px;
    background: linear-gradient(90deg, var(--kopma-primary), var(--kopma-secondary));
    margin: 0 auto 2rem;
}

/* Timeline Styles */
.timeline-item {
    position: relative;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--kopma-primary);
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--kopma-primary);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 16px;
    bottom: -16px;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item:last-child::after {
    display: none;
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    color: var(--kopma-primary);
    opacity: 0.1;
    font-family: Georgia, serif;
}

/* Scroll Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.spinner {
    border: 3px solid rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    border-top-color: var(--kopma-primary);
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--kopma-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}
