/* Custom Styles for Portfolio - Bootstrap Version */
/* Mufazaril Angga Pradika */

/* Fonts */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.nav-link {
    font-weight: 500;
    color: #64748b !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #0d6efd !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #ecfeff 100%);
}

.profile-photo-wrapper {
    width: 280px;
    height: 280px;
    position: relative;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    border: 4px solid #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    aspect-ratio: 1 / 1;
}

@media (min-width: 992px) {
    .profile-photo-wrapper {
        width: 320px;
        height: 320px;
    }
}

/* Social Buttons */
.social-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
}

.social-btn:hover {
    background: #0d6efd;
    color: #fff;
}

.social-btn.social-wa:hover {
    background: #25d366;
    color: #fff;
}

.social-btn-light {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.social-btn-light:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.social-btn-dark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1e293b;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
}

.social-btn-dark:hover {
    background: #0d6efd;
    color: #fff;
}

/* Title underline */
.title-underline {
    width: 60px;
    height: 4px;
    background: #0d6efd;
    border-radius: 2px;
    margin-top: 8px;
}

/* Vision box */
.vision-box {
    background: #eff6ff;
    border-left: 4px solid #0d6efd;
}

/* Info cards */
.info-card {
    background: #f8fafc;
    transition: background 0.2s;
}

.info-card:hover {
    background: #eff6ff;
}

/* Icon box */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #bfdbfe;
}

.timeline-item {
    position: relative;
}

.timeline-badge {
    position: absolute;
    left: -27px;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #0d6efd;
}

/* Experience cards */
.experience-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Portfolio */
.portfolio-img {
    height: 180px;
}

.portfolio-card {
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

/* Article */
.article-img {
    height: 140px;
}

/* Contact */
.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

#contact-form .form-control {
    color: #fff !important;
}

#contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    opacity: 0;
    transition: opacity 0.3s, transform 0.2s;
}

.back-to-top.show {
    display: flex;
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* Purple color helpers */
.bg-purple {
    background-color: #7c3aed !important;
}

.bg-purple-subtle {
    background-color: #f3e8ff !important;
}

.text-purple {
    color: #7c3aed !important;
}

.text-indigo {
    color: #6366f1 !important;
}

.text-pink {
    color: #ec4899 !important;
}

/* Skill bar animation */
.skill-bar {
    transition: width 1.5s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ========== ANIMATIONS ========== */

/* Floating profile photo */
.profile-photo-wrapper {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Typing cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 0.8s step-end infinite;
    color: #0d6efd;
    font-weight: 300;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Pulse on social buttons */
.social-btn:hover {
    animation: pulse-btn 0.4s ease;
}

@keyframes pulse-btn {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Gentle bounce for back-to-top when shown */
.back-to-top.show {
    animation: bounce-in 0.5s ease;
}

@keyframes bounce-in {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* Skill bar shine effect */
.progress {
    overflow: hidden;
    position: relative;
}

.skill-bar {
    position: relative;
    overflow: hidden;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Card hover lift already exists, enhance a bit */
.experience-card:hover,
.portfolio-card:hover {
    transform: translateY(-8px);
}


/* Kegiatan */
.activity-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.activity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12) !important;
}

.activity-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 767.98px) {
    .activity-img {
        height: 230px;
    }
}
