/* Custom styles that complement Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: #f8fafc; /* Warna biru sangat muda */
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Page load animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.loaded {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Hero section specific animations */
#home h1, #home h2, #home p, #home .flex.space-x-4 {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

#home .rounded-full {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out 0.3s;
}

body.loaded #home h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

body.loaded #home h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

body.loaded #home p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

body.loaded #home .flex.space-x-4 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

body.loaded #home .rounded-full {
    opacity: 1;
    transform: scale(1);
}

/* Animation for sections */
section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for skills and projects */
.skill-card, .project-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.show .skill-card:nth-child(1) { transition-delay: 0.1s; }
.show .skill-card:nth-child(2) { transition-delay: 0.2s; }
.show .skill-card:nth-child(3) { transition-delay: 0.3s; }
.show .skill-card:nth-child(4) { transition-delay: 0.4s; }
.show .skill-card:nth-child(5) { transition-delay: 0.5s; }
.show .skill-card:nth-child(6) { transition-delay: 0.6s; }
.show .skill-card:nth-child(7) { transition-delay: 0.7s; }
.show .skill-card:nth-child(8) { transition-delay: 0.8s; }
.show .skill-card:nth-child(9) { transition-delay: 0.9s; }

.show .project-card:nth-child(1) { transition-delay: 0.1s; }
.show .project-card:nth-child(2) { transition-delay: 0.2s; }
.show .project-card:nth-child(3) { transition-delay: 0.3s; }

.show .skill-card, .show .project-card {
    opacity: 1;
    transform: translateY(0);
}

/* Hover animations */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Floating animation for profile image */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Warna section about dan projects */
#about, #projects {
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Warna section skills dan contact */
#skills, #contact {
    background-color: #f8fafc;
}

/* Warna teks utama */
.text-gray-800 {
    color: #1e293b; /* Warna biru tua yang lebih hangat */
}

.text-gray-600 {
    color: #475569; /* Warna abu-abu kebiruan */
}

/* Warna teks di footer */
footer .text-gray-400 {
    color: #94a3b8;
}

/* Update warna biru utama */
.text-blue-600 {
    color: #2563eb; /* Warna biru yang lebih dalam */
}

.bg-blue-600 {
    background-color: #2563eb;
}

.hover\:bg-blue-700:hover {
    background-color: #1d4ed8; /* Warna biru lebih gelap saat hover */
}

.border-blue-600 {
    border-color: #2563eb;
}

.hover\:text-blue-600:hover {
    color: #2563eb;
}

.bg-blue-100 {
    background-color: #dbeafe; /* Warna biru sangat muda untuk background tag */
}

.text-blue-800 {
    color: #1e40af; /* Warna biru tua untuk teks tag */
}

/* Update shadow dan card */
.bg-white {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 
                0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Warna border profile image */
.border-blue-100 {
    border-color: #dbeafe;
}

/* Update navbar */
nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Warna active link */
nav a.text-blue-600 {
    color: #2563eb;
    font-weight: 600;
}

/* Update button utama */
.bg-blue-600 {
    background-color: #2563eb;
    transition: all 0.3s ease;
}

.bg-blue-600:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

/* Button sekunder */
.border-blue-600 {
    border-color: #2563eb;
    transition: all 0.3s ease;
}

.border-blue-600:hover {
    background-color: #eff6ff;
    transform: translateY(-2px);
}

/* Update form input */
.border-gray-300 {
    border-color: #cbd5e1;
}

.focus\:ring-blue-500:focus {
    ring-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Form background */
form {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
}

/* Update footer */
footer {
    background-color: #1e293b; /* Warna biru tua */
}

footer .text-gray-400 {
    color: #94a3b8;
}

footer .hover\:text-white:hover {
    color: #ffffff;
}

footer .border-gray-700 {
    border-color: #334155;
}

/* Update tag skill di about section */
.bg-gray-100 {
    background-color: #f1f5f9;
}

.text-gray-800 {
    color: #1e293b;
}

/* Efek hover untuk social icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #2563eb !important;
    transform: translateY(-3px);
}

/* Efek hover untuk project cards */
.project-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-5px);
    border-bottom: 3px solid #2563eb;
}


/* Form Alert Styles */
#formAlert {
    transition: all 0.3s ease;
}

/* Button Spinner Animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}