/* ==========================================================================
   PORTFOLIO PREMIUM & MINIMALIS - PUDAEL ZIKRI
   Core Custom Stylesheet
   ========================================================================== */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    
    /* Sea Blue Color Palette */
    --clr-bg-pure: #ffffff;
    --clr-bg-soft: #f8fafc;
    --clr-bg-sea-mist: #f0f9ff;
    --clr-sea-light: #e0f2fe;
    --clr-sea-medium: #7dd3fc;
    --clr-sea-blue: #38bdf8;
    --clr-sea-deep: #0284c7;
    --clr-sea-dark: #0369a1;
    --clr-slate-dark: #0f172a;
    --clr-slate-medium: #334155;
    --clr-slate-light: #64748b;
    --clr-border: rgba(226, 232, 240, 0.8);
    
    /* Transitions */
    --tr-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --tr-medium: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --tr-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    font-family: var(--font-primary);
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg-pure);
    color: var(--clr-slate-dark);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--clr-bg-pure);
}
::-webkit-scrollbar-thumb {
    background: var(--clr-sea-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--clr-sea-blue);
}

/* Glassmorphism Styles */
.glass-nav {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: var(--tr-medium);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.06);
    transform: translateY(-4px);
}

/* Floating Blobs Background */
.blob-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    mix-blend-mode: multiply;
    animation: floatBlob 15s infinite alternate ease-in-out;
}

@keyframes floatBlob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

/* Floating Hero Image Animation */
.floating-avatar {
    animation: floatingHero 6s infinite ease-in-out;
}

@keyframes floatingHero {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(0.5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Typing Indicator Animation */
.typing-cursor::after {
    content: '|';
    animation: blinkCursor 0.8s infinite;
    color: var(--clr-sea-blue);
    font-weight: 700;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Timeline Custom Styling */
.timeline-dot {
    position: relative;
    z-index: 10;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    z-index: -1;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

/* Interactive Project Categories Pill */
.category-btn.active {
    background-color: var(--clr-sea-blue);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

/* SCROLL REVEAL ENGINE */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: none !important;
}

.reveal-fade {
    /* Pure fade */
}

.reveal-slide-up {
    transform: translateY(40px);
}

.reveal-slide-left {
    transform: translateX(40px);
}

.reveal-slide-right {
    transform: translateX(-40px);
}

.reveal-scale {
    transform: scale(0.95);
}

/* Stagger transitions helper */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* LUXURY LIGHTBOX MODAL */
.luxury-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
}

.luxury-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.luxury-modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s ease;
}

.luxury-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(3, 105, 161, 0.15);
    z-index: 1010;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.luxury-modal.active .luxury-modal-content {
    transform: scale(1);
}

.luxury-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    background: rgba(255, 255, 255, 0.5);
}

.luxury-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(248, 250, 252, 0.5);
    min-height: 300px;
}

.luxury-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    background: rgba(255, 255, 255, 0.5);
}

/* Certificate Preview Area inside modal */
.cert-preview-img {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cert-preview-iframe {
    width: 100%;
    height: 55vh;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Gradient text utility */
.text-gradient-sea {
    background: linear-gradient(135deg, var(--clr-sea-blue) 0%, var(--clr-sea-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
