@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&display=swap');

body {
  font-family: 'Playfair Display', serif;
  font-style: normal;
}

/* Custom Variables & Reset */
:root {
    --gold: #007BFF;
}

body {
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom one */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    transition: all 0.4s ease;
}
.dark .glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-card:hover {
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 123, 255, 0.1);
}

/* Profile Picture Animation */
.profile-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-wrapper::before, .profile-wrapper::after {
    display: none;
}

.profile-img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    object-fit: contain;
    /* Hapus background jika ada, atau gunakan CSS untuk masking */
    background: transparent;
    position: relative;
    z-index: 10;
}

/* Animations */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(to right, #fff, #007BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scroll Reveal Utility */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 123, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Particle Canvas */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Navigation Hover */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Typing cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

