@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=DM+Serif+Display&family=DM+Mono&display=swap');

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background-color: #080812; /* Solid fallback para mawala ang white flash */
}

body {
    background: linear-gradient(135deg, #080812 0%, #0d0d1a 40%, #0f0d1a 70%, #0d1017 100%) no-repeat fixed;
    background-color: #080812;
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display { font-family: 'DM Serif Display', serif; }
.font-mono { font-family: 'DM Mono', monospace; }

/* Grid Overlay */
.grid-overlay {
    background-image: 
        linear-gradient(rgba(34, 211, 238, 0.2) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(34, 211, 238, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* Timeline Path */
.timeline-line {
    position: absolute;
    top: 24px; /* Centered with w-12 icons */
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent);
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    top: 24px;
    left: 0;
    width: 12px;
    height: 12px;
    background: #22d3ee;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px #22d3ee, 0 0 30px rgba(34, 211, 238, 0.4);
    z-index: 20;
    pointer-events: none;
    transition: left 0.15s ease-out; /* Smooths out scroll jumps */
}

/* Scanline Effect */
.scanline-overlay {
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(34, 211, 238, 0.05) 50%
    );
    background-size: 100% 4px;
    opacity: 0.2; /* Increased visibility */
}

.scanline-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, 0.1), transparent);
    animation: scanline-move 10s linear infinite;
}

@keyframes scanline-move {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}

/* Blob Animation */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

.blob {
    animation: float 12s ease-in-out infinite;
}

/* Typing Cursor */
.cursor {
    animation: blink 0.8s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Profile Image Floating Animation */
.profile-animate {
    animation: profile-float 6s ease-in-out infinite;
}

@keyframes profile-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #080812;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #22d3ee, #6366f1);
    border-radius: 10px;
}

/* Text Gradient Animation */
@keyframes text-gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-text-gradient {
    background-size: 200% auto !important;
    animation: text-gradient-move 4s ease infinite;
}

/* Navbar Border Animation */
@keyframes border-pulse {
    0%, 100% { border-color: rgba(255, 255, 255, 0.1); }
    50% { border-color: rgba(34, 211, 238, 0.4); }
}

.nav-active-border {
    animation: border-pulse 3s ease-in-out infinite;
}

/* Paragraph Pulse Animation */
@keyframes paragraph-fade-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.paragraph-pulse {
    animation: paragraph-fade-pulse 4s ease-in-out infinite;
}

html { scroll-behavior: smooth; }